rest_api_allowed_post_types, array( post, page, revision
rest_api_allowed_post_types, array( post, page, revision
Appears in: jetpack.16.0.1
Hook Type: filter
Displaying hooks found in version: jetpack.16.0.1apply_filters('rest_api_allowed_post_types, array( post, page, revision') is found 2 times:
- /jetpack_vendor/automattic/jetpack-sync/src/class-functions.php line 257
* @return array Array of allowed post types. */ public static function rest_api_allowed_post_types() { /** This filter is already documented in class.json-api-endpoints.php */ return apply_filters( 'rest_api_allowed_post_types', array( 'post', 'page', 'revision' ) ); } /** * Return array of allowed REST API public metadata. * * @return array Array of allowed metadata. - /modules/related-posts/jetpack-related-posts.php line 2035
* @uses register_rest_field, self::rest_get_related_posts */ public function rest_register_related_posts() { /** This filter is already documented in class.json-api-endpoints.php */ $post_types = apply_filters( 'rest_api_allowed_post_types', array( 'post', 'page', 'revision' ) ); /** * Filter the post types that are allowed to have related posts. * * @since 15.3 *