lp__is_serialized( $data )
This function checks if a given string is a serialized value. It returns true if the string is a serialized value and can be unserialized, otherwise it returns false.
Plugin
Namespace
Launchpad
Parameters
string
$data
The string to check for serialization.
Return
bool
True if the string is serialized, false otherwise.
Source
File: \includes\lp-utility-functions.php
function lp__is_serialized($data) {
return @unserialize($data) !== false;
}