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
if ( !function_exists( 'wp_unregister_widget_control' ) ) { require_once ABSPATH . WPINC . '/widgets.php'; } // Widget ID. $id = null; // NOTICE! Understand what this does before running. $result = wp_unregister_widget_control($id);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/widgets.php
- function wp_unregister_widget_control($id) {
- wp_register_widget_control( $id, '', '' );
- }