rest_{$this->taxonomy}_query

rest_{$this->taxonomy}_query

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('rest_{$this->taxonomy}_query') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php line 318
    		 *
    		 * @param array           $prepared_args Array of arguments for get_terms().
    		 * @param WP_REST_Request $request       The REST API request.
    		 */
    		$prepared_args = apply_filters( "rest_{$this->taxonomy}_query", $prepared_args, $request );
    
    		if ( ! empty( $prepared_args['post'] ) ) {
    			$query_result = wp_get_object_terms( $prepared_args['post'], $this->taxonomy, $prepared_args );
    
    			// Used when calling wp_count_terms() below.
    			$prepared_args['object_ids'] = $prepared_args['post'];