_wp_remove_unregistered_widgets


_wp_remove_unregistered_widgets ( $sidebars_widgets, $whitelist = array() )

Parameters:
  • (array) $sidebars_widgets List of sidebars and their widget instance IDs.
  • (array) $whitelist Optional. List of widget IDs to compare against. Default: Registered widgets.
Returns:
  • (array) Sidebars with whitelisted widgets.
Defined at:

Description

Compares a list of sidebars with their widgets against a whitelist.

Related Functions

wp_unregister_sidebar_widget, unregister_widget, wp_embed_unregister_handler, wp_unregister_widget_control, wp_register_sidebar_widget

Top Google Results

User discussions

wpseek mobile