Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: enter_title_here

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
230 $side_meta_boxes = do_meta_boxes($post_type, 'side', $post);
231 ?>
232 </div>
233
234 <div id="post-body">
235 <div id="post-body-content">
236 <?php if ( post_type_supports($post_type, 'title') ) { ?>
237 <div id="titlediv">
238 <div id="titlewrap">
239      <label class="hide-if-no-js" style="visibility:hidden" id="title-prompt-text" for="title"><?php echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); ?></label>
240      <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />
241 </div>
242 <div class="inside">
243 <?php
244 $sample_permalink_html = $post_type_object->public ? get_sample_permalink_html($post->ID) : '';
245 $shortlink = wp_get_shortlink($post->ID, 'post');
246 if ( !empty($shortlink) )
247     $sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr($shortlink) . '" /><a href="#" class="button" onclick="prompt(&#39;URL:&#39;, jQuery(\'#shortlink\').val()); return false;">' . __('Get Shortlink') . '</a>';
248