Home Support Extensions Messages CC Message To Admin?

CC Message To Admin?

  • Author
    Posts
  • justinbryeans

    Hello,

    I’d like to add the ability to CC messages to the admin email, which also contains the post listing title or some other identifying value. Thoughts on the best way to accomplish this?

    Thanks!
    Justin

    ihor developer

    This would require code customizations (via the “hivepress/v1/models/message/create” hook), but you can try using a workaround from this topic https://hivepress.io/support/topic/can-the-admin-see-the-messages-between-the-vendors-and-users/#post-5834 Messages will be visible in the Comments section.

    justinbryeans

    Thank you! I get the general gist, but not sure what to include in the blank sections (and I’m assuming I formatted the other part correctly)

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

    You can try using this one:

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

    Thanks! That seems to work well. Is there a way to add detail for the “in response to” field in comments, so that one could see the connection between the message and the original listing?

    justinbryeans

    Actually, not sure it is working… It brought in an old test message, but I’ve tested with a few new messages, and they don’t populate in comments…

    justinbryeans

    One more thing. Would the setting to save messages to the db need to be on for this?

    justinbryeans

    I think I answered my own question, as I turned that on, tested and all good! Thanks 🙂

    ihor developer

    Yes, if you uncheck this option then messages will only be sent via email, they’ll not be stored and will not appear in WP dashboard.

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

The topic ‘CC Message To Admin?’ is closed to new replies.