Function cmb2_get_metabox_sanitized_values
Returns array of sanitized field values from a metabox (without saving them)
Package: CMB2
License: GPL-2.0+
Author: CMB2 team
Since: 2.0.3
Located at includes/helper-functions.php
License: GPL-2.0+
Author: CMB2 team
Since: 2.0.3
Located at includes/helper-functions.php
Parameters summary
mixed |
$meta_box |
Metabox ID or Metabox config array. |
array |
$data_to_sanitize |
Array of field_id => value data for sanitizing (likely $_POST data). |
Return value summary
mixed
|
Array of sanitized values or false if no CMB2 object found |