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 |
|---|---|
| 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', ''); |
| 99 | $upgrade = apply_filters( 'update_footer', '' ); |
| 100 | echo __('Thank you for creating with <a href="http://wordpress.org/">WordPress</a>'); |
| 101 | ?></p> |
| 102 | </div> |
| 103 | <?php do_action('admin_footer', ''); ?> |
| 104 | </body> |
| 105 | </html> |
| 106 | <?php die; |
| 107 | } |
| 108 | |
| 109 | // Ajax Requests |
| 110 | $title = wp_specialchars(aposfix(stripslashes($_GET['t']))); |
| 111 | |
| 112 | $selection = trim( aposfix( stripslashes($_GET['s']) ) ); |