Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: edit_comment_link

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
829      } else {
830           if ( !current_user_can( 'edit_post', $post->ID ) )
831                return;
832      }
833
834      if ( null === $link )
835           $link = __('Edit This');
836
837      $link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . __( 'Edit comment' ) . '">' . $link . '</a>';
838      echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after;
839 }
840
841 /**
842  * Display edit bookmark (literally a URL external to blog) link.
843  *
844  * @since 2.7.0
845  *
846  * @param int $link Optional. Bookmark ID.
847  * @return string