Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




add_option_update_handler [ WordPress Function ]

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.
  • (unknown_type) $sanitize_callback A callback function that sanitizes the option's value.
See:
Returns:
  • (unknown)
Defined at:



Register a setting and its sanitization callback

Source


<?php
function add_option_update_handler$option_group$option_name$sanitize_callback '' ) {
    
_deprecated_function__FUNCTION__'3.0''register_setting()' );
    return 
register_setting$option_group$option_name$sanitize_callback );
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics