rest_prepare_revision

rest_prepare_revision

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

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('rest_prepare_revision') is found 1 times:

  • /wp-includes/rest-api/endpoints/class-wp-rest-revisions-controller.php line 667
    		 * @param WP_REST_Response $response The response object.
    		 * @param WP_Post          $post     The original revision object.
    		 * @param WP_REST_Request  $request  Request used to generate the response.
    		 */
    		return apply_filters( 'rest_prepare_revision', $response, $post, $request );
    	}
    
    	/**
    	 * Checks the post_date_gmt or modified_gmt and prepare any post or
    	 * modified date for single post output.
    	 *