Remove a registered widget area.
Since a Beans widget area is using the WordPress sidebar, this function deregisters the defined WordPress sidebar using unregister_sidebar().
beans_deregister_widget_area( string $id )
Return: (void)
Parameters
Name | Type | Required | Default | Description |
---|---|---|---|---|
$id | string | true | - | The ID of the registered widget area. |
Source
function beans_deregister_widget_area( $id ) {
unregister_sidebar( $id );
}