$value)
$meta[$key]=maybe_unserialize($value[0]);
return $meta;
}
/**
@brief Gets all the meta data from the user unserialized.
@param string $id Object ID.
@return An array containing the meta data.
@since 1.0.0
*/
function cff_get_user_meta($id) {
$meta=get_user_meta($id);
foreach($meta as $key => $value)
$meta[$key]=maybe_unserialize($value[0]);
return $meta;
}
/**
@brief Gets a form value.
@param string $id The key.
@param string $method (optional) Like @b get or @b post.
@return The value.
@since 1.0.0
*/
function cff_get_form_value($id, $method='post') {
if($method=='post') return $_POST[$id];
else return $_GET[$id];
}
?>