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 |
---|---|
480 | $comment = (int) $_GET['comment']; |
481 | $commentdata = get_commentdata($comment, 1, true) or die(sprintf(__('Oops, no comment with this ID. <a href="%s">Go back</a>!'), 'javascript:history.go(-1)')); |
482 |
|
483 | if (!user_can_edit_post_comments($user_ID, $commentdata['comment_post_ID'])) { |
484 | die( __('You are not allowed to edit comments on this post.') ); |
485 | } |
486 |
|
487 | $content = $commentdata['comment_content']; |
488 | $content = format_to_edit($content); |
489 | $content = apply_filters('comment_edit_pre', $content); |
490 | |
491 | $comment_status = $commentdata['comment_approved']; |
492 |
|
493 | include('edit-form-comment.php'); |
494 |
|
495 | break; |
496 |
|
497 | case 'confirmdeletecomment': |
498 |
|