Custom Fields
Re-Envisioned › Support › MB Settings Page › Delete options field MB Settings Page › Reply To: Delete options field MB Settings Page
September 1, 2018 at 2:25 PM #11210
Hi,
The old field is an element in the option array. To delete it, simply unset it:
$option = get_option( 'settings' );
$option['new-text'] = $option['Text-old'];
// THIS
unset( $option['Text-old'] );
update_option( 'settings', $option );