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 |
---|---|
71 |
|
72 | <div id="poststuff"> |
73 |
|
74 | <div class="submitbox" id="submitpost"> |
75 |
|
76 | <div id="previewview"> |
77 | <?php if ( 'publish' == $post->post_status ) { ?> |
78 | <a href="<?php echo clean_url(get_permalink($post->ID)); ?>" target="_blank" tabindex="4"><?php _e('View this Post'); ?></a> |
79 | <?php } elseif ( 'edit' == $action ) { ?> |
80 | <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> |
81 | <?php } ?> |
82 | </div> |
83 |
|
84 | <div class="inside"> |
85 |
|
86 | <p><strong><?php _e('Publish Status') ?></strong></p> |
87 | <p> |
88 | <select name='post_status' tabindex='4'> |
89 | <?php if ( current_user_can('publish_posts') ) : // Contributors only get "Unpublished" and "Pending Review" ?> |