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 |
---|---|
141 | <div><input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape($post->post_title); ?>" id="title" /></div> |
142 | </fieldset> |
143 |
|
144 | <fieldset id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>"> |
145 | <legend><?php _e('Post') ?> |
146 |
|
147 | <?php if ( 'publish' == $post->post_status ) { ?> |
148 | <a href="<?php echo clean_url(get_permalink($post->ID)); ?>" class="view-link" target="_blank"><?php _e('View »'); ?></a> |
149 | <?php } elseif ( 'edit' == $action ) { ?> |
150 | <a href="<?php echo clean_url(apply_filters('preview_post_link', add_query_arg('preview', 'true', get_permalink($post->ID)))); ?>" class="view-link" target="_blank"><?php _e('Preview »'); ?></a> |
151 | <?php } ?> |
152 | </legend> |
153 |
|
154 | <?php the_editor($post->post_content); ?> |
155 | </fieldset> |
156 |
|
157 | <?php echo $form_pingback ?> |
158 | <?php echo $form_prevstatus ?> |
159 |
|