Codex

Function Reference/unregister sidebar widget


This function has been deprecated. That means it has been replaced by a new function or is no longer supported, and may be removed from future versions. All code that uses this function should be converted to use its replacement if one exists. See also wp-includes/deprecated.php. Use any of these functions instead.

Contents

Description

Makes a previously available widget unavailable. This is most commonly used within a theme's functions.php to disable a widget that does not work well in that theme's sidebar.

Usage

 <?php unregister_sidebar_widget$id ); ?> 

Parameters

$id
(string/int) (required) Widget ID.
Default: None

Example

Notes

Change Log

Since: 2.2.0

Source File

unregister_sidebar_widget() is located in wp-includes/widgets.php.

Related

Widgets: is_active_widget(), the_widget(), register_widget(), unregister_widget(), wp_register_widget_control(), wp_unregister_widget_control(), wp_convert_widget_settings(), wp_get_widget_defaults(), wp_widget_description()

See also index of Function Reference and index of Template Tags.