WP_REST_Themes_Controller::sanitize_theme_status

Advertisement

Summery Summery

Sanitizes and validates the list of theme status.

Syntax Syntax

WP_REST_Themes_Controller::sanitize_theme_status( string|array $statuses, WP_REST_Request $request, string $parameter )

Parameters Parameters

$statuses

(string|array) (Required) One or more theme statuses.

$request

(WP_REST_Request) (Required) Full details about the request.

$parameter

(string) (Required) Additional parameter to pass to validation.

Return Return

(array|WP_Error) A list of valid statuses, otherwise WP_Error object.

Source Source

File: wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php


			

Advertisement

Changelog Changelog

Changelog
Version Description
5.0.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.