Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: sidebar_admin_setup

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
34           wp_enqueue_script( 'jquery-touch-punch' );
35 }
36
37 /**
38  * Fires early before the Widgets administration screen loads,
39  * after scripts are enqueued.
40  *
41  * @since 2.2.0
42  */
43 do_action( 'sidebar_admin_setup' );
44
45 $title = __( 'Widgets' );
46 $parent_file = 'themes.php';
47
48 get_current_screen()->add_help_tab( array(
49 'id'          => 'overview',
50 'title'          => __('Overview'),
51 'content'     =>
52      '<p>' . __('Widgets are independent sections of content that can be placed into any widgetized area provided by your theme (commonly called sidebars). To populate your sidebars/widget areas with individual widgets, drag and drop the title bars into the desired area. By default, only the first widget area is expanded. To populate additional widget areas, click on their title bars to expand them.') . '</p>