wp_unregister_sidebar_widget WordPress Action Hook

The wp_unregister_sidebar_widget hook is used to unregister a sidebar widget. This hook is fired when a sidebar widget is unregistered.

do_action( 'wp_unregister_sidebar_widget', int|string $id ) #

Fires just before a widget is removed from a sidebar.


Parameters

$id

(int|string)The widget ID.


Top ↑

Source

File: wp-includes/widgets.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.0.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.