PHP Класс Jetpack_SEO_Utils, jetpack

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

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

Метод Описание
get_front_page_meta_description ( ) : string Returns front page meta description for current site.
has_grandfathered_front_page_meta ( ) : boolean Checks if this option was set while it was still available under free plan.
is_enabled_jetpack_seo ( integer $site_id ) : boolean Used to check whether SEO tools are enabled for given site.
update_front_page_meta_description ( $value ) : string Updates the site option value for front page meta description.

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

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

Since we allowed non-business users to set Front page meta description for some time, before bundling it with other SEO tools features that require a business plan, we are supporting grandfathering here.
public static get_front_page_meta_description ( ) : string
Результат string Front page meta description string or empty string.

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

Checks if this option was set while it was still available under free plan.
public static has_grandfathered_front_page_meta ( ) : boolean
Результат boolean True if we should enable grandfathering, false otherwise.

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

Used to check whether SEO tools are enabled for given site.
public static is_enabled_jetpack_seo ( integer $site_id ) : boolean
$site_id integer Optional. Defaults to current blog id if not given.
Результат boolean True if SEO tools are enabled, false otherwise.

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

We are taking care to update the correct option, in case the value is grandfathered for current site.
public static update_front_page_meta_description ( $value ) : string
$value string New value for front page meta description.
Результат string Saved value, or empty string if no update was performed.