Description
Remove an option field from a set
Usage
$mixed = bw_delete_option( $field, $options );Parameters
- $field
- ( string ) required – the option field to be removed
- $options
- ( string ) optional default: bw_options – the name of the options set
Returns
mixed $value – current values for the optionsSource
File name: oik-types/admin/oik-types.phpLines:
1 to 7 of 7
function bw_delete_option( $field, $options="bw_options" ) { $bw_options = get_option( $options ); unset( $bw_options[ $field ] ); // bw_trace2( $bw_options ); update_option( $options, $bw_options ); return( $options ); }View on GitHub
Called by
1 to 7 of 7
- _oik_cpt_delete_type() –
- _oik_f2t_delete_f2t() – Delete the field to post relationship
- _oik_fie_delete_field() –
- _oik_plugins_delete_settings() – Delete the settings for a plugin
- _oik_tax_delete_taxonomy() – Delete an oik taxonomy
- _oik_themes_delete_settings() –
- _oik_x2t_delete_x2t() – Delete the taxonomy to type relationship
