rest_route_for_post

rest_route_for_post

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('rest_route_for_post') is found 1 times:

  • /wp-includes/rest-api.php line 3181
    	 *
    	 * @param string  $route The route path.
    	 * @param WP_Post $post  The post object.
    	 */
    	return apply_filters( 'rest_route_for_post', $route, $post );
    }
    
    /**
     * Gets the REST API route for a post type.
     *
     * @since 5.9.0