Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: edit_comment

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
678           WHERE comment_ID = $comment_ID"
679           );
680
681      $referredby = $_POST['referredby'];
682      if (!empty($referredby)) {
683           header('Location: ' . $referredby);
684      } else {
685           header ("Location: edit.php?p=$comment_post_ID&c=1#comments");
686      }
687      do_action('edit_comment', $comment_ID);
688      break;
689
690 default:
691      $title = __('Create New Post');
692      require_once ('./admin-header.php');
693 ?>
694 <?php if ( isset($_GET['posted']) ) : ?>
695 <div class="updated"><p><?php printf(__('Post saved. <a href="%s">View site &raquo;</a>'), get_bloginfo('home')); ?></p></div>
696 <?php endif; ?>