PHP 클래스 Jetpack_SEO_Posts, jetpack

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

공개 메소드들

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

메소드 상세

get_post_custom_description() 공개 정적인 메소드

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

get_post_description() 공개 정적인 메소드

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