Used By
Used By | Description |
---|---|
wp-includes/meta.php: update_metadata() | Updates metadata for the specified object. If no value already exists for the specified object ID and metadata key, the metadata will be added. |
Polyfill for is_countable() function added in PHP 7.3.
Verify that the content of a variable is an array or an object implementing the Countable interface.
(mixed) (Required) The value to check.
(bool) True if $var
is countable, false otherwise.
File: wp-includes/compat.php
function is_countable( $var ) { return ( is_array( $var ) || $var instanceof Countable || $var instanceof SimpleXMLElement || $var instanceof ResourceBundle ); }
Version | Description |
---|---|
4.9.6 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/is_countable