Welcome, visitor! Log in
 

Source View: post_submitbox_misc_actions

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.

  • Action hooks look like this: do_action( "hook_name" )
  • Filter hooks look like this: 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.

Source View

Line Code
169 if ( $can_publish ) : // Contributors don't get to choose the date of publish ?>
170 <div class="misc-pub-section curtime misc-pub-section-last">
171      <span id="timestamp">
172      <?php printf($stamp, $date); ?></span>
173      <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>
174      <div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'),1,4); ?></div>
175 </div><?php // /misc-pub-section ?>
176 <?php endif; ?>
177
178 <?php do_action('post_submitbox_misc_actions'); ?>
179 </div>
180 <div class="clear"></div>
181 </div>
182
183 <div id="major-publishing-actions">
184 <?php do_action('post_submitbox_start'); ?>
185 <div id="delete-action">
186 <?php
187 if ( current_user_can( "delete_${post_type}", $post->ID ) ) {