PHP Класс Jetpack_SEO_Posts, jetpack

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
get_post_custom_description ( WP_Post $post ) : string Returns post's custom meta description if it is set, and if SEO tools are enabled for current blog.
get_post_description ( WP_Post $post ) : string Build meta description for post SEO.

Описание методов

get_post_custom_description() публичный статический Метод

Returns post's custom meta description if it is set, and if SEO tools are enabled for current blog.
public static get_post_custom_description ( WP_Post $post ) : string
$post WP_Post Source of data for custom description
Результат string Custom description or empty string

get_post_description() публичный статический Метод

Build meta description for post SEO.
public static get_post_description ( WP_Post $post ) : string
$post WP_Post Source of data for custom description.
Результат string Post description or empty string.