rest_api_allowed_post_types, $allowed_types
rest_api_allowed_post_types, $allowed_types
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('rest_api_allowed_post_types, $allowed_types') is found 2 times:
- /class.json-api-endpoints.php line 2254
* @since 2.2.3 * * @param array $allowed_types Array of whitelisted post types. Default to `array( 'post', 'page', 'revision' )`. */ $allowed_types = apply_filters( 'rest_api_allowed_post_types', $allowed_types ); return array_unique( $allowed_types ); } /** * Mobile apps are allowed free video uploads, but limited to 5 minutes in length.
- /sal/class.json-api-site-base.php line 759
* @since 2.2.3 * * @param array $allowed_types Array of whitelisted post types. Default to `array( 'post', 'page', 'revision' )`. */ $allowed_types = apply_filters( 'rest_api_allowed_post_types', $allowed_types ); return array_unique( $allowed_types ); } /** * Can the user view the post?