Filter access to a specific post.
Parameters
- $post
WP_Post Post data.
- current_user_can(
bool 'read_post', $post->ID ) Can the current user access the post.
Changelog
- Introduced in Jetpack 3.4.0
wpcom_json_api_user_can_view_postFilter access to a specific post.
WP_PostPost data.
bool'read_post', $post->ID ) Can the current user access the post.