Join our new community forum for support & discussion

Join Now

Home Support Extensions Messages Showing Messages in Comments. Is This Correct?

Showing Messages in Comments. Is This Correct?

  • Author
    Posts
  • justinbryeans

    Hello,

    I’ve used a snippet for a while (added last year) for our holiday site, but noticed as I tested that the comment needed to be approved?

    I then approved the comment and it disappeared.

    Here’s the snippet:

    add_filter(
    	'hivepress/v1/comment_types',
    	function( $comment_types ) {
    		$comment_types['message']['public'] = true;
    
    		return $comment_types;
    	}
    );
    ihor developer

    The snippet seems to be correct, it just makes messages (hidden comments of “hp_message” type) visible in WordPress/Comments section. Please don’t change the approved status since it’s used for read/unread indication.

Viewing 2 posts - 1 through 2 (of 2 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.