wp_unregister_widget_control

Remove control callback for widget.

Description

wp_unregister_widget_control( (int|string) $id ); 

Parameters (1)

0. $id (int|string)
Widget ID.

Usage

  1. if ( !function_exists( 'wp_unregister_widget_control' ) ) { 
  2. require_once ABSPATH . WPINC . '/widgets.php'; 
  3.  
  4. // Widget ID. 
  5. $id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = wp_unregister_widget_control($id); 
  9.  

Defined (1)

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

/wp-includes/widgets.php  
  1. function wp_unregister_widget_control($id) { 
  2. wp_register_widget_control( $id, '', '' );