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
140      jQuery(document).ready( function() {
141           updateAll();
142           initWidgets();
143      });
144 // ]]>
145 </script>
146 <?php
147 }
148 add_action( 'admin_head', 'wp_widgets_admin_head' );
149 do_action( 'sidebar_admin_setup' );
150
151 function wp_widget_draggable( $name ) {
152      global $wp_registered_widgets, $wp_registered_widget_controls;
153
154      if ( !isset( $wp_registered_widgets[$name] ) ) {
155           return;
156      }
157
158      $sanitized_name = sanitize_title( $wp_registered_widgets[$name]['id'] );