remove_option_update_handler

Unregister a setting.

Description

remove_option_update_handler( (string) $option_group, (string) $option_name, (string) $sanitize_callback = '' ); 

Parameters (3)

0. $option_group (string)
The option group.
1. $option_name (string)
The option name.
2. $sanitize_callback — Optional. (string) => ''
The sanitize callback.

Usage

  1. if ( !function_exists( 'remove_option_update_handler' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/deprecated.php'; 
  3.  
  4. // The option group. 
  5. $option_group = ''; 
  6.  
  7. // The option name. 
  8. $option_name = ''; 
  9.  
  10. // The sanitize callback. 
  11. $sanitize_callback = ''; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = remove_option_update_handler($option_group, $option_name, $sanitize_callback); 
  15.  

Defined (1)

The function is defined in the following location(s).

/wp-admin/includes/deprecated.php  
  1. function remove_option_update_handler( $option_group, $option_name, $sanitize_callback = '' ) { 
  2. _deprecated_function( __FUNCTION__, '3.0.0', 'unregister_setting()' ); 
  3. unregister_setting( $option_group, $option_name, $sanitize_callback );