wp_unregister_sidebar_widget

Definition:
function wp_unregister_sidebar_widget($id) {}

Remove widget from sidebar.

Parameters

  • int|string $id: Widget ID.

Defined actions

  • wp_unregister_sidebar_widget
    do_action( 'wp_unregister_sidebar_widget', $id );

Source code

function wp_unregister_sidebar_widget($id) {

	do_action( 'wp_unregister_sidebar_widget', $id );



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

	wp_unregister_widget_control($id);

}

4197

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: