Function cmb2_update_option
A helper function to update an option in a CMB2 options array
Package: CMB2
License: GPL-2.0+
Author: CMB2 team
Since: 2.0.0
Located at includes/helper-functions.php
License: GPL-2.0+
Author: CMB2 team
Since: 2.0.0
Located at includes/helper-functions.php
Parameters summary
string |
$option_key |
Option key. |
string |
$field_id |
Option array field key. |
mixed |
$value |
Value to update data with. |
boolean |
$single = true |
Whether data should not be an array. |
Return value summary
boolean
|
Success/Failure |