_validate_cache_id


_validate_cache_id ( $object_id )

Parameters:
  • (mixed) object_id The cache ID to validate.
Returns:
  • (bool) Whether the given $object_id is a valid cache ID.
Defined at:

Description

Checks whether the given cache ID is either an integer or an integer-like string.Both `16` and `"16"` are considered valid, other numeric types and numeric strings (`16.3` and `"16.3"`) are considered invalid.

Related Functions

validate_email, validate_active_plugins, wp_validate_auth_cookie, wp_validate_site_data, validate_file

Top Google Results

User discussions

wpseek mobile