Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: admin_xml_ns

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
53      if ( !current_user_can( $tab_array[1] ) ) {
54           unset($wp_upload_tabs[$t]);
55           if ( $tab == $t )
56                wp_die(__("You are not allowed to be here"));
57      }
58 }
59
60 if ( 'inline' == $style ) : ?>
61 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
62 <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>>
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') ?> &rsaquo; <?php _e('Uploads'); ?> &#8212; 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>