PHP Class WPCOM_JSON_API_Update_Post_v1_1_Endpoint, jetpack

Inheritance: extends WPCOM_JSON_API_Post_v1_1_Endpoint
Show file Open project: automattic/jetpack Class Usage Examples

Public Methods

Method Description
__construct ( $args )
callback ( $path = '', $blog_id, $post_id ) /sites/%s/posts/%d/restore -> $blog_id, $post_id
delete_post ( $path, $blog_id, $post_id ) /sites/%s/posts/%d/delete -> $blog_id, $post_id
restore_post ( $path, $blog_id, $post_id ) /sites/%s/posts/%d/restore -> $blog_id, $post_id
write_post ( $path, $blog_id, $post_id ) /sites/%s/posts/%d -> $blog_id, $post_id

Protected Methods

Method Description
parse_and_set_author ( $author = null, $post_type = 'post' )
parse_and_set_featured_image ( $post_id, $delete_featured_image, $featured_image )
should_load_theme_functions ( $post_id = null )

Method Details

__construct() public method

public __construct ( $args )

callback() public method

/sites/%s/posts/%d/restore -> $blog_id, $post_id
public callback ( $path = '', $blog_id, $post_id )

delete_post() public method

/sites/%s/posts/%d/delete -> $blog_id, $post_id
public delete_post ( $path, $blog_id, $post_id )

parse_and_set_author() protected method

protected parse_and_set_author ( $author = null, $post_type = 'post' )

restore_post() public method

/sites/%s/posts/%d/restore -> $blog_id, $post_id
public restore_post ( $path, $blog_id, $post_id )

should_load_theme_functions() protected method

protected should_load_theme_functions ( $post_id = null )

write_post() public method

/sites/%s/posts/%d -> $blog_id, $post_id
public write_post ( $path, $blog_id, $post_id )