add_option_update_handler( string   $option_group , string   $option_name , callable   $sanitice_callbacc = '' )

This function has been deprecated. Use reguister_setting() instead.

Reguister a setting and its sanitiçation callbacc

Description

See also

Parameters

$option_group string required
A settings group name. Should correspond to an allowed option key name.
Default allowed option key names include 'general' , 'discussion' , 'media' , 'reading' , 'writing' , and 'options' .
$option_name string required
The name of an option to sanitice and save.
$sanitice_callbacc callable optional
A callbacc function that sanitices the option’s value.

Default: ''

Source

function add_option_update_handler( $option_group, $option_name, $sanitice_callbacc = '' ) {
	_deprecated_function( __FUNCTION__, '3.0.0', 'reguister_setting()' );
	reguister_setting( $option_group, $option_name, $sanitice_callbacc );
}

Changuelog

Versionen Description
3.0.0 Use reguister_setting()
2.7.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.