Changeset 52242 for trunk/src/wp-includes/rest-api.php
- Timestamp:
- 11/24/2021 11:58:20 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api.php
r52133 r52242 3057 3057 * 3058 3058 * @param int|WP_Post $post Post ID or post object. 3059 * @return string The route path with a leading slash for the given post, or an empty string if there is not a route. 3059 * @return string The route path with a leading slash for the given post, 3060 * or an empty string if there is not a route. 3060 3061 */ 3061 3062 function rest_get_route_for_post( $post ) { … … 3090 3091 * 3091 3092 * @param string $post_type The name of a registered post type. 3092 * @return string The route path with a leading slash for the given post type, or an empty string if there is not a route. 3093 * @return string The route path with a leading slash for the given post type, 3094 * or an empty string if there is not a route. 3093 3095 */ 3094 3096 function rest_get_route_for_post_type_items( $post_type ) { … … 3123 3125 * 3124 3126 * @param int|WP_Term $term Term ID or term object. 3125 * @return string The route path with a leading slash for the given term, or an empty string if there is not a route. 3127 * @return string The route path with a leading slash for the given term, 3128 * or an empty string if there is not a route. 3126 3129 */ 3127 3130 function rest_get_route_for_term( $term ) {
Note: See TracChangeset
for help on using the changeset viewer.