Warning: This function has been deprecated. Use wp_unregister_sidebar_widget() instead.

unregister_sidebar_widget() WordPress Function

The unregister_sidebar_widget() function is used to remove a registered sidebar widget. This function takes the id of the sidebar widget as its only parameter.

unregister_sidebar_widget( int|string $id ) #

Serves as an alias of wp_unregister_sidebar_widget().


Description

Top ↑

See also


Top ↑

Parameters

$id

(int|string)(Required)Widget ID.


Top ↑

Source

File: wp-includes/deprecated.php

function unregister_sidebar_widget($id) {
	_deprecated_function( __FUNCTION__, '2.8.0', 'wp_unregister_sidebar_widget()' );
	return wp_unregister_sidebar_widget($id);
}


Top ↑

Changelog

Changelog
VersionDescription
2.8.0Use wp_unregister_sidebar_widget()
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.

Show More