WPDev.one
Core Function
View Source on Trac ↗

rest_are_values_equal()

rest_are_values_equal( mixed $value1, mixed $value2 )

Checks the equality of two values, following JSON Schema semantics.

Parameters 2 required

Name / Type Description
$value1
mixed

The first value to check.

Required
$value2
mixed

The second value to check.

Required

Return Value

(bool)
True if the values are equal or false otherwise.

Function Information

Since Version
5.7.0
Source File
wp-includes/rest-api.php
Advertisement