• I’m using a custom function to output comments. It seems to work fine, however I’ve added the following notice for when comments are yet to be approved:
    <p class="awaiting-approval">New comment is awaiting approval</p>

    However, rather than this just showing to the comment author, it seems to be showing to everyone. Is WP supposed to use cookies to determine who the author was?

    Here is the full code for the function if that helps:
    http://pastebin.com/muqb9Hfk

    Also, I’m calling the function like so:

    $comments = get_comments(array(
    		'post_id' => 9
    	));
    
    	// limit comments if comments displaying in sidebar
    
    	if (is_page(9)) {
    		$args = array(
    			'callback' => 'theme_commentCustom'
    		);
    	} else {
    		$args = array(
    			'callback' => 'theme_commentCustom',
    			'per_page' => 3
    		);
    	}
    
    ?>
    
    <ul class="feed">
    	<?php
    		wp_list_comments( $args, $comments );
    	?>
    </ul>

  • The topic ‘Comment Approval Message Showing to All Users’ is closed to new replies.