wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



add_option_update_handler › WordPress Function

Seit2.7.0
Veraltet3.0.0
add_option_update_handler ( $option_group, $option_name, $sanitize_callback = '' )
Parameter: (3)
  • (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'.
    Erforderlich: Ja
  • (string) $option_name The name of an option to sanitize and save.
    Erforderlich: Ja
  • (callable) $sanitize_callback Optional. A callback function that sanitizes the option's value.
    Erforderlich: Nein
    Standard: (leer)
Siehe:
Definiert in:
Codex:

Register a setting and its sanitization callback



Quellcode

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