rest_sanitize_request_arg

Advertisement

Summery Summery

Sanitize a request argument based on details registered to the route.

Syntax Syntax

rest_sanitize_request_arg( mixed $value, WP_REST_Request $request, string $param )

Parameters Parameters

$value

(mixed) (Required)

$request

(WP_REST_Request) (Required)

$param

(string) (Required)

Return Return

(mixed)

Source Source

File: wp-includes/rest-api.php

 *
 * @since 4.7.0
 *
 * @return int[] List of pixel sizes for avatars. Default `[ 24, 48, 96 ]`.
 */
function rest_get_avatar_sizes() {
	/**
	 * Filters the REST avatar sizes.
	 *

Advertisement

Changelog Changelog

Changelog
Version Description
4.7.0 Introduced.

Advertisement

Leave a Reply

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