add_option_update_handler
- add_option_update_handler is deprecated since version 3.0.0!
Alternative: register_setting()
add_option_update_handler ( $option_group, $option_name, $sanitize_callback = '' )
Parameters:- (string) option_group 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'.
- (string) option_name The name of an option to sanitize and save.
- (callable) sanitize_callback Optional. A callback function that sanitizes the option's value.
See:Defined at: - Introduced in WordPress: 2.7.0
- Deprecated in WordPress: 3.0.0
Description
Register a setting and its sanitization callback