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 |
---|---|
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 »</a>'), get_bloginfo('home')); ?></p></div> |
696 | <?php endif; ?> |