PHP 클래스 WPCOM_JSON_API_Post_Endpoint, jetpack

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

공개 프로퍼티들

프로퍼티 타입 설명
$post_object_format

공개 메소드들

메소드 설명
__construct ( $args ) public $response_format =& $this->post_object_format;
find_featured_media ( WP_Post &$post ) : object Supporting featured media in post endpoints. Currently on for wpcom blogs since it's calling WPCOM_JSON_API_Read_Endpoint methods which presently rely on wpcom specific functionality.
get_attachment ( $attachment ) : (object) Returns attachment object.
get_blog_post ( $blog_id, $post_id, $context = 'display' )
get_current_user_capabilities ( WP_Post $post ) : array Get post-specific user capabilities
get_post_by ( string $field, string $field_value, string $context = 'display' ) : array Get a post by a specified field and value
get_the_post_content_for_display ( ) Expects setup_postdata() to already have been run
is_metadata_public ( $key )
the_password_form ( )
win8_gallery_shortcode ( $attr )

보호된 메소드들

메소드 설명
get_post_id_by_name ( string $name ) : integer | object Get post ID by name

메소드 상세

__construct() 공개 메소드

public $response_format =& $this->post_object_format;
public __construct ( $args )

get_attachment() 공개 메소드

Returns attachment object.
public get_attachment ( $attachment ) : (object)
$attachment attachment row
리턴 (object)

get_blog_post() 공개 메소드

public get_blog_post ( $blog_id, $post_id, $context = 'display' )

get_current_user_capabilities() 공개 메소드

Get post-specific user capabilities
public get_current_user_capabilities ( WP_Post $post ) : array
$post WP_Post post object
리턴 array array of post-level permissions; 'publish_post', 'delete_post', 'edit_post'

get_post_by() 공개 메소드

Get a post by a specified field and value
public get_post_by ( string $field, string $field_value, string $context = 'display' ) : array
$field string
$field_value string
$context string Post use context (e.g. 'display')
리턴 array Post

get_post_id_by_name() 보호된 메소드

Attempts to match name on post title and page path
protected get_post_id_by_name ( string $name ) : integer | object
$name string
리턴 integer | object Post ID on success, WP_Error object on failure

get_the_post_content_for_display() 공개 메소드

Expects setup_postdata() to already have been run

is_metadata_public() 공개 메소드

public is_metadata_public ( $key )

the_password_form() 공개 메소드

public the_password_form ( )

프로퍼티 상세

$post_object_format 공개적으로 프로퍼티

public $post_object_format