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

    ihordeveloper

    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;
    	}
    );
    ihordeveloper

    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 🙂

    ihordeveloper

    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.

Subscribe

Sign In

Don't have an account? Register

Forgot password?

Register

Already have an account? Sign In

Forgot password?

Reset Password

Please enter your username or email address, you will receive a link to create a new password via email.

Cyber Monday is coming! Get 25% off with MONDAY2020 coupon code until Monday, November 30.