rest_prepare_{$this->taxonomy}

rest_prepare_{$this->taxonomy}

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

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('rest_prepare_{$this->taxonomy}') is found 2 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php line 143
    			$response->add_links( $this->prepare_links( $term ) );
    		}
    
    		/** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php */
    		return apply_filters( "rest_prepare_{$this->taxonomy}", $response, $term, $request );
    	}
    
    	/**
    	 * Prepares links for the request.
    	 *
    	 * @since 5.9.0
    
  • /wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php line 940
    		 * @param WP_REST_Response  $response  The response object.
    		 * @param WP_Term           $item      The original term object.
    		 * @param WP_REST_Request   $request   Request used to generate the response.
    		 */
    		return apply_filters( "rest_prepare_{$this->taxonomy}", $response, $item, $request );
    	}
    
    	/**
    	 * Prepares links for the request.
    	 *
    	 * @since 4.7.0