PHP Class Jetpack_SEO_Utils, jetpack

Afficher le fichier Open project: automattic/jetpack Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

get_front_page_meta_description() public static méthode

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
Résultat string Front page meta description string or empty string.

has_grandfathered_front_page_meta() public static méthode

Checks if this option was set while it was still available under free plan.
public static has_grandfathered_front_page_meta ( ) : boolean
Résultat boolean True if we should enable grandfathering, false otherwise.

is_enabled_jetpack_seo() public static méthode

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.
Résultat boolean True if SEO tools are enabled, false otherwise.

update_front_page_meta_description() public static méthode

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.
Résultat string Saved value, or empty string if no update was performed.