You appear to be a bot. Output may be restricted
Description
Usage
WPCOM_JSON_API_Post_Endpoint::get_blog_post( $blog_id, $post_id, $context );
Parameters
- $blog_id
- ( mixed ) required –
- $post_id
- ( mixed ) required –
- $context
- ( mixed ) optional default: display –
Returns
void
Source
File name: jetpack/json-endpoints/class.wpcom-json-api-post-endpoint.php
Lines:
1 to 10 of 10
function get_blog_post( $blog_id, $post_id, $context = 'display' ) { $blog_id = $this->api->get_blog_id( $blog_id ); if ( !$blog_id || is_wp_error( $blog_id ) ) { return $blog_id; } switch_to_blog( $blog_id ); $post = $this->get_post_by( 'ID', $post_id, $context ); restore_current_blog(); return $post; }