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
35           wp_enqueue_script( 'jquery-touch-punch' );
36 }
38 /**
39  * Fires early before the Widgets administration screen loads,
40  * after scripts are enqueued.
41  *
42  * @since 2.2.0
43  */
44 do_action( 'sidebar_admin_setup' );
46 $title = __( 'Widgets' );
47 $parent_file = 'themes.php';
49 get_current_screen()->add_help_tab( array(
50 'id'          => 'overview',
51 'title'          => __('Overview'),
52 'content'     =>
53      '<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>