rest_route_for_post

rest_route_for_post

Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('rest_route_for_post') is found 1 times:

  • /wp-includes/rest-api.php line 3181
    3177
    3178
    3179
    3180
    3181
    3182
    3183
    3184
    3185
    3186
    3187
         *
         * @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