PHP 클래스 Jetpack_SEO_Utils, jetpack

파일 보기 프로젝트 열기: automattic/jetpack 1 사용 예제들

공개 메소드들

메소드 설명
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.