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.
This hook occurs 2 times in this file.
Line | Code |
---|---|
80 | <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> |
81 | <title><?php _e('Press This') ?></title> |
82 | <?php |
83 | add_thickbox(); |
84 | wp_enqueue_style('press-this'); |
85 | wp_enqueue_style('press-this-ie'); |
86 | wp_enqueue_style( 'colors' ); |
87 | wp_enqueue_script('post'); |
88 |
|
89 | do_action('admin_print_styles'); |
90 | do_action('admin_print_scripts'); |
91 | do_action('admin_head'); |
92 | ?> |
93 | </head> |
94 | <body class="press-this"> |
95 | <div id="message" class="updated fade"><p><strong><?php _e('Your post has been saved.'); ?></strong> <a onclick="window.opener.location.replace(this.href); window.close();" href="<?php echo get_permalink( $post_ID); ?>"><?php _e('View post'); ?></a> | <a href="post.php?action=edit&post=<?php echo $post_ID; ?>" onclick="window.opener.location.replace(this.href); window.close();"><?php _e('Edit post'); ?></a> | <a href="#" onclick="window.close();"><?php _e('Close Window'); ?></a></p></div> |
96 | <div id="footer"> |
97 | <p><?php |
98 | do_action('in_admin_footer', ''); |
Line | Code |
294 | <script type="text/javascript" src="../wp-includes/js/tinymce/tiny_mce.js?ver=311"></script> |
295 | <?php |
296 | add_thickbox(); |
297 | wp_enqueue_style('press-this'); |
298 | wp_enqueue_style('press-this-ie'); |
299 | wp_enqueue_style( 'colors' ); |
300 | wp_enqueue_script('post'); |
301 | wp_enqueue_script('editor_functions'); |
302 |
|
303 | do_action('admin_print_styles'); |
304 | do_action('admin_print_scripts'); |
305 | do_action('admin_head'); |
306 | ?> |
307 | <script type="text/javascript"> |
308 | <?php if ( user_can_richedit() ) { |
309 | $language = ( '' == get_locale() ) ? 'en' : strtolower( substr(get_locale(), 0, 2) ); |
310 | // Add TinyMCE languages |
311 | @include_once( dirname(__FILE__).'/../wp-includes/js/tinymce/langs/wp-langs.php' ); |
312 | if ( isset($strings) ) echo $strings; ?> |