wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_route_for_post_type_items › WordPress Filter Hooks

Seit5.9.0
Veraltetn/v
apply_filters( 'rest_route_for_post_type_items', $route, $post_type )
Parameter: (2)
  • (string) $route The route path.
    Erforderlich: Ja
  • (WP_Post_Type) $post_type The post type object.
    Erforderlich: Ja
Definiert in:
Codex:

Filters the REST API route for a post type.





Quellcode

return apply_filters( 'rest_route_for_post_type_items', $route, $post_type );