WP hooks navigation: Home/browse • Actions index • Filters index
To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).
The best way to understand what a hook does is to look at where it occurs in the source code.
do_action( "hook_name" )
apply_filters( "hook_name", "what_to_filter" )
.Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.
Line | Code |
---|---|
63 | <head> |
64 | <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> |
65 | <title><?php bloginfo('name') ?> › <?php _e('Uploads'); ?> — WordPress</title> |
66 | <?php wp_admin_css(); ?> |
67 | <script type="text/javascript"> |
68 | //<![CDATA[ |
69 | function addLoadEvent(func) {if ( typeof wpOnload!='function'){wpOnload=func;}else{ var oldonload=wpOnload;wpOnload=function(){oldonload();func();}}} |
70 | //]]> |
71 | </script> |
72 | <?php do_action('admin_print_scripts'); wp_upload_admin_head(); ?> |
73 | </head> |
74 | <body> |
75 | <?php |
76 | else : |
77 | add_action( 'admin_head', 'wp_upload_admin_head' ); |
78 | include_once('admin-header.php'); |
79 | ?> |
80 | <div class='wrap'> |
81 | <h2><?php _e('Uploads'); ?></h2> |