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 |
---|---|
85 |
|
86 | <div id="poststuff"> |
87 |
|
88 | <div class="submitbox" id="submitpost"> |
89 |
|
90 | <div id="previewview"> |
91 | <?php if ( 'publish' == $post->post_status ) { ?> |
92 | <a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank" tabindex="4"><?php _e('View this Post'); ?></a> |
93 | <?php } elseif ( 'edit' == $action ) { ?> |
94 | <a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" target="_blank" tabindex="4"><?php _e('Preview this Post'); ?></a> |
95 | <?php } ?> |
96 | </div> |
97 |
|
98 | <div class="inside"> |
99 |
|
100 | <p><strong><label for='post_status'><?php _e('Publish Status') ?></label></strong></p> |
101 | <p> |
102 | <select name='post_status' id='post_status' tabindex='4'> |
103 | <?php |