wphooks.info - rest_themes_collection_params

rest_themes_collection_params

(trunk - 5.1-alpha-44286)

*** New in trunk ***

The hook occurs in the following file:

wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php:
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
			'sanitize_callback' => array( $this, 'sanitize_theme_status' ),
		);

		/**
		 * Filter collection parameters for the themes controller.
		 *
		 * @since 5.0.0
		 *
		 * @param array        $query_params JSON Schema-formatted collection parameters.
		 */
		return apply_filters( 'rest_themes_collection_params', $query_params );
	}

	/**
	 * Sanitizes and validates the list of theme status.
	 *
	 * @since 5.0.0
	 *
	 * @param  string|array    $statuses  One or more theme statuses.
	 * @param  WP_REST_Request $request   Full details about the request.