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
353 ?>
354
355 <div id="poststuff">
356 <div id="post-body" class="metabox-holder columns-<?php echo 1 == get_current_screen()->get_columns() ? '1' : '2'; ?>">
357 <div id="post-body-content">
358
359 <?php if ( post_type_supports($post_type, 'title') ) { ?>
360 <div id="titlediv">
361 <div id="titlewrap">
362      <label class="screen-reader-text" id="title-prompt-text" for="title"><?php echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); ?></label>
363      <input type="text" name="post_title" size="30" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />
364 </div>
365 <div class="inside">
366 <?php
367 $sample_permalink_html = $post_type_object->public ? get_sample_permalink_html($post->ID) : '';
368 $shortlink = wp_get_shortlink($post->ID, 'post');
369 if ( !empty($shortlink) )
370     $sample_permalink_html .= '<input id="shortlink" type="hidden" value="' . esc_attr($shortlink) . '" /><a href="#" class="button button-small" onclick="prompt(&#39;URL:&#39;, jQuery(\'#shortlink\').val()); return false;">' . __('Get Shortlink') . '</a>';
371