apply_filters( 'rest_route_for_post', string $route, WP_Post $post )

Filters the REST API route for a post.

Parameters Parameters


(string) The route path.


(WP_Post) The post object.

Top ↑

Source Source

File: wp-includes/rest-api.php

View on Trac

Top ↑

Changelog Changelog

Version Description
5.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.