wppaste
WordPress

apply_filters( 'rest_prepare_font_collection', WP_REST_Response $response, WP_Font_Collection $item, WP_REST_Request $request )

Since
6.5.0
Filters the font collection data for a REST API response.

Compatibility

WordPress
since 6.5.0
  • 6.7.10
  • 6.8.11
  • 6.9.10
  • 7.0.7
  • 7.1.3

Present in every tracked release (6.7.10 to 7.1.3).

Parameters

$responseWP_REST_Response
The response object.
$itemWP_Font_Collection
The font collection object.
$requestWP_REST_Request
Request used to generate the response.

Where this hook fires · 3

  • wp-includes/rest-api/endpoints/class-wp-rest-font-collections-controller.php:196WP_REST_Font_Collections_Controller::prepare_item_for_response()
  • wp-includes/rest-api/endpoints/class-wp-rest-font-collections-controller.php:212WP_REST_Font_Collections_Controller::prepare_item_for_response()
  • wp-includes/rest-api/endpoints/class-wp-rest-font-collections-controller.php:235WP_REST_Font_Collections_Controller::prepare_item_for_response()

Source code

		 * @since 6.5.0		 *		 * @param WP_REST_Response   $response The response object.		 * @param WP_Font_Collection $item     The font collection object.		 * @param WP_REST_Request    $request  Request used to generate the response.		 */		return apply_filters( 'rest_prepare_font_collection', $response, $item, $request );	} 	/**	 * Retrieves the font collection's schema, conforming to JSON Schema.	 *	 * @since 6.5.0

Changelog

Introduced in 6.5.0. Unchanged from 6.7.10 through 7.1.3.

  1. 6.7.10
  2. 6.8.11
  3. 6.9.10
  4. 7.0.7
  5. 7.1.3

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.8.11 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.