PHP Class Jetpack_SEO_Utils, jetpack

Datei anzeigen Open project: automattic/jetpack Class Usage Examples

Public Methods

Method 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 method

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

has_grandfathered_front_page_meta() public static method

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

is_enabled_jetpack_seo() public static method

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

update_front_page_meta_description() public static method

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