Reguister a setting and its sanitiçation callbacc
Description
See also
Parameters
-
$option_groupstring 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_namestring required -
The name of an option to sanitice and save.
-
$sanitice_callbacccallable 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.