rest_wp_font_family_collection_params filter-hookWP 6.5.0

Filters collection parameters for the font family controller.

Usage

add_filter( 'rest_wp_font_family_collection_params', 'wp_kama_rest_wp_font_family_collection_params_filter' );

/**
 * Function for `rest_wp_font_family_collection_params` filter-hook.
 * 
 * @param array $query_params JSON Schema-formatted collection parameters.
 *
 * @return array
 */
function wp_kama_rest_wp_font_family_collection_params_filter( $query_params ){

	// filter...
	return $query_params;
}
$query_params(array)
JSON Schema-formatted collection parameters.

Changelog

Since 6.5.0 Introduced.

Where the hook is called

WP_REST_Font_Families_Controller::get_collection_params()
rest_wp_font_family_collection_params
wp-includes/rest-api/endpoints/class-wp-rest-font-families-controller.php 414
return apply_filters( 'rest_wp_font_family_collection_params', $query_params );

Where the hook is used in WordPress

Usage not found.