wp_unregister_widget_control()WP 2.2.0

Remove control callback for widget.

No Hooks.

Return

null. Nothing (null).

Usage

wp_unregister_widget_control( $id );
$id(int|string) (required)
Widget ID.

Changelog

Since 2.2.0 Introduced.

wp_unregister_widget_control() code WP 6.5.2

function wp_unregister_widget_control( $id ) {
	wp_register_widget_control( $id, '', '' );
}