wp_list_widget_controls

Definition:
function wp_list_widget_controls( $sidebar ) {}

Show the widgets and their settings for a sidebar.
Used in the the admin widget config screen.

Parameters

  • string $sidebar: id slug of the sidebar

Source code

function wp_list_widget_controls( $sidebar ) {

	add_filter( 'dynamic_sidebar_params', 'wp_list_widget_controls_dynamic_sidebar' );



	echo "<div id='$sidebar' class='widgets-sortables'>\n";



	$description = wp_sidebar_description( $sidebar );



	if ( !empty( $description ) ) {

		echo "<div class='sidebar-description'>\n";

		echo "\t<p class='description'>$description</p>";

		echo "</div>\n";

	}



	dynamic_sidebar( $sidebar );

	echo "</div>\n";

}

3867

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 )

Facebook photo

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

Connecting to %s

%d bloggers like this: