Свойство | Type | Description | |
---|---|---|---|
$post_object_format |
Méthode | Description | |
---|---|---|
__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 ) |
Méthode | Description | |
---|---|---|
get_post_id_by_name ( string $name ) : integer | object | Get post ID by name |
public __construct ( $args ) |
public static find_featured_media ( WP_Post &$post ) : object | ||
$post | WP_Post | |
Résultat | object | list of featured media |
public get_attachment ( $attachment ) : (object) | ||
$attachment | attachment row | |
Résultat | (object) |
public get_current_user_capabilities ( WP_Post $post ) : array | ||
$post | WP_Post | post object |
Résultat | array | array of post-level permissions; 'publish_post', 'delete_post', 'edit_post' |
public get_the_post_content_for_display ( ) |