add_option_update_handler


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:

Description

Register a setting and its sanitization callback

Related Functions

remove_option_update_handler, option_update_filter, add_options_page, _json_wp_die_handler, add_option_whitelist

Top Google Results

User discussions

wpseek mobile