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.2

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

  • /wp-includes/rest-api/endpoints/class-wp-rest-menus-controller.php line 143
    139
    140
    141
    142
    143
    144
    145
    146
    147
    148
    149
            $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
    936
    937
    938
    939
    940
    941
    942
    943
    944
    945
    946
         * @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