PHP Class Jetpack_SEO_Posts, jetpack

ファイルを表示 Open project: automattic/jetpack Class Usage Examples

Public Methods

Method Description
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.

Method Details

get_post_custom_description() public static method

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
return string Custom description or empty string

get_post_description() public static method

Build meta description for post SEO.
public static get_post_description ( WP_Post $post ) : string
$post WP_Post Source of data for custom description.
return string Post description or empty string.