wp_unregister_sidebar_widget( int|string $id )

Remove widget from sidebar.

Description Description

Parameters Parameters


(int|string) (Required) Widget ID.

Top ↑

Source Source

File: wp-includes/widgets.php

function wp_unregister_sidebar_widget($id) {

	 * Fires just before a widget is removed from a sidebar.
	 * @since 3.0.0
	 * @param int $id The widget ID.
	do_action( 'wp_unregister_sidebar_widget', $id );

	wp_register_sidebar_widget($id, '', '');

Top ↑

Changelog Changelog

Version Description
2.2.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.