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 |
---|---|
69 | wp_update_post($quick); |
70 | } |
71 | return $post_ID; |
72 | } |
73 |
|
74 | // For submitted posts. |
75 | if ( 'post' == $_REQUEST['action'] ) { |
76 | check_admin_referer('press-this'); $post_ID = press_it(); ?> |
77 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
78 | <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>> |
79 | <head> |
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'); |
Line | Code |
280 | <small id="photo_directions"><?php _e('Click images to select:') ?> <span><a href="#" id="photo_add_url" class="thickbox"><?php _e('Add from URL') ?> +</a></span></small> |
281 |
|
282 | <div class="titlewrap"> |
283 | <div id="img_container"></div> |
284 | </div> |
285 | <?php die; |
286 | } |
287 | ?> |
288 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
289 | <html xmlns="http://www.w3.org/1999/xhtml" <?php do_action('admin_xml_ns'); ?> <?php language_attributes(); ?>> |
290 | <head> |
291 | <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php echo get_option('blog_charset'); ?>" /> |
292 | <title><?php _e('Press This') ?></title> |
293 |
|
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'); |