• Hi!

    I need to modify function edit_comment_link to make it do following:

    function edit_comment_link( $link = null, $before = '', $after = '' ) {
    	global $comment, $post;
    
    		if ( !current_user_can( 'edit_own_comments' ) )
    			return;
    
    	if ( null === $link )
    		$link = __('Edit This');
    
    	$link = '<a class="comment-edit-link" href="' . get_edit_comment_link( $comment->comment_ID ) . '" title="' . __( 'Edit comment' ) . '">' . $link . '</a>';
    	echo $before . apply_filters( 'edit_comment_link', $link, $comment->comment_ID ) . $after;
    }

    Is there a way to do it with plugins or I have to do it manually after every upgrade?

Viewing 1 replies (of 1 total)
  • Thread Starter s0what

    (@s0what)

    I found a solution – I made similar function and put it in theme functions.php file ??

Viewing 1 replies (of 1 total)
  • The topic ‘How to modify function edit_comment_link?’ is closed to new replies.