Check the ‘meta’ value of a request is an associative array.
Parameters
$value
mixedrequired- The meta value submitted in the request.
$request
WP_REST_Requestrequired- Full details about the request.
$param
stringrequired- The parameter name.
Source
public function check_meta_is_array( $value, $request, $param ) {
if ( ! is_array( $value ) ) {
return false;
}
return $value;
}
Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.