Make WordPress Core


Ignore:
Timestamp:
07/01/2021 09:11:29 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct documentation for rest_{$post_type}_query and rest_{$taxonomy}_query filters.

Synchronize documentation for related rest_{$object_type}_query filters for consistency.

Props dlh.
Fixes #53568.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r51026 r51293  
    327327
    328328                /**
    329                  * Filters WP_Query arguments when querying users via the REST API.
     329                 * Filters WP_Query arguments when querying posts via the REST API.
    330330                 *
    331331                 * The dynamic portion of the hook name, `$this->post_type`, refers to the post type slug.
     
    344344                 * @link https://developer.wordpress.org/reference/classes/wp_query/
    345345                 *
    346                  * @param array           $args    Array of arguments to be passed to WP_Query.
     346                 * @param array           $args    Array of arguments for WP_Query.
    347347                 * @param WP_REST_Request $request The REST API request.
    348348                 */
Note: See TracChangeset for help on using the changeset viewer.