PHP 클래스 Jetpack_RelatedPosts_Raw, jetpack

상속: extends Jetpack_RelatedPosts
파일 보기 프로젝트 열기: automattic/jetpack

보호된 프로퍼티들

프로퍼티 타입 설명
$_query_name

공개 메소드들

메소드 설명
action_admin_init ( ) The raw related posts class can be used by other plugins or themes to get related content. This class wraps the existing RelatedPosts logic thus we never want to add anything to the DOM or do anything for event hooks. We will also not present any settings for this class and keep it enabled as calls to this class is done programmatically.
action_frontend_init ( )
get_options ( )
set_query_name ( string $name ) : Jetpack_RelatedPosts_Raw Allows callers of this class to tag each query with a unique name for tracking purposes.

보호된 메소드들

메소드 설명
_get_related_posts ( integer $post_id, integer $size, array $filters ) : array Workhorse method to return array of related posts ids matched by ElasticSearch.

메소드 상세

action_admin_init() 공개 메소드

The raw related posts class can be used by other plugins or themes to get related content. This class wraps the existing RelatedPosts logic thus we never want to add anything to the DOM or do anything for event hooks. We will also not present any settings for this class and keep it enabled as calls to this class is done programmatically.
public action_admin_init ( )

action_frontend_init() 공개 메소드

get_options() 공개 메소드

public get_options ( )

set_query_name() 공개 메소드

Allows callers of this class to tag each query with a unique name for tracking purposes.
public set_query_name ( string $name ) : Jetpack_RelatedPosts_Raw
$name string
리턴 Jetpack_RelatedPosts_Raw

프로퍼티 상세

$_query_name 보호되어 있는 프로퍼티

protected $_query_name