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 a whitelisted option key name. Default whitelisted option key names include "general," "discussion," and "reading," among others.
  • (string) $option_name The name of an option to sanitize and save.
  • (callable) $sanitize_callback 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, add_option_whitelist, do_activate_header

Top Google Results

User discussions

wpseek mobile