function wp_list_widget_controls_dynamic_sidebar( $params ) {}


  • array $params

Source code

function wp_list_widget_controls_dynamic_sidebar( $params ) {

	global $wp_registered_widgets;

	static $i = 0;


	$widget_id = $params[0]['widget_id'];

	$id = isset($params[0]['_temp_id']) ? $params[0]['_temp_id'] : $widget_id;

	$hidden = isset($params[0]['_hide']) ? ' style="display:none;"' : '';

	$params[0]['before_widget'] = "<div id='widget-{$i}_{$id}' class='widget'$hidden>";


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 )

Connecting to %s

%d bloggers like this: