a_z_listing_posts_api_handler( WP_REST_Request $request )
REST API entrypoint for posts requests
Description
Parameters
- $request
(Required) The REST API Request.
Source
File: wp-api/api.php
function a_z_listing_posts_api_handler( WP_REST_Request $request ) { $args = a_z_listing_api_handler_defaults( $request ); $args['display'] = 'posts'; $args['post_type'] = $request->get_param( 'post_type' ); $args['taxonomy'] = $request->get_param( 'taxonomy' ); $args['terms'] = $request->get_param( 'terms' ); return a_z_listing_real_api_handler( $request, $args ); }
Changelog
Version | Description |
---|---|
2.0.0 | Introduced. |