Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



add_option_update_handler ›

Od2.7.0
Przestarzały3.0.0
add_option_update_handler ( $option_group, $option_name, $sanitize_callback = '' )
Parametry: (3)
  • (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.
    Wymagane: Tak
  • (string) $option_name The name of an option to sanitize and save.
    Wymagane: Tak
  • (callable) $sanitize_callback A callback function that sanitizes the option's value.
    Wymagane: Nie
    Domyślny: (puste)
Zobacz:
Zdefiniowane na:
Codex:

Register a setting and its sanitization callback



Źródło

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 );
}