PHP Класс Jetpack_RelatedPosts_Raw, jetpack

Наследование: extends Jetpack_RelatedPosts
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$_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