wp_unregister_widget_control() WordPress Function

The wp_unregister_widget_control() function can be used to unregister a custom widget control from a particular sidebar. This function is typically used in conjunction with the wp_register_widget_control() function.

wp_unregister_widget_control( int|string $id ) #

Remove control callback for widget.


Parameters

$id

(int|string)(Required)Widget ID.


Top ↑

Source

File: wp-includes/widgets.php

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


Top ↑

Changelog

Changelog
VersionDescription
2.2.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.