wp_kses_check_attr_val

SummerySummery

Performs different checks for attribute values.

Syntax

wp_kses_check_attr_val( string $value, string $vless, string $checkname, mixed $checkvalue )

DescriptionDescription

The currently implemented checks are "maxlen", "minlen", "maxval", "minval", and "valueless".

ParametersParameters

$value

(string) (Required) Attribute value.

$vless

(string) (Required) Whether the attribute is valueless. Use 'y' or 'n'.

$checkname

(string) (Required) What $checkvalue is checking for.

$checkvalue

(mixed) (Required) What constraint the value should pass.

ReturnReturn

(bool) Whether check passes.

SourceSource

File: wp-includes/kses.php


			

ChangelogChangelog

Changelog
Version Description
1.0.0 Introduced.
Scroll to Top