Title: Comment
Last modified: July 5, 2019

---

# Comment

 *  Resolved [deuns26](https://wordpress.org/support/users/deuns26/)
 * (@deuns26)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/comment-29/)
 * I turn on comments for private pages.
    When the customer creates a comment on
   his private page, the comment is automatically approved and I do not receive 
   a comment by e-mail.
 * Comments adjustments are well programmed. Comments on normal pages work well
 * Thx

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/)
 * (@gabrielberzescu)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/comment-29/#post-11709771)
 * Hi there,
 * Yes, indeed I see that _Dashboard -> Settings -> Discussion -> Before a comment
   appears : Comment must be manually approved_ does not work for Client Portal 
   private pages.
 * I am issuing a bug report for this.
 * Best regards,
    Gabriel
 *  Thread Starter [deuns26](https://wordpress.org/support/users/deuns26/)
 * (@deuns26)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/comment-29/#post-11709981)
 * Thank you tell me as soon as the bug is repaired
 *  [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/)
 * (@gabrielberzescu)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/comment-29/#post-11710329)
 * All right, I have asked the development team to let me know when they fix this,
   so when they let me know, I will let you know 🙂
 *  Thread Starter [deuns26](https://wordpress.org/support/users/deuns26/)
 * (@deuns26)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/comment-29/#post-12194259)
 * Hello always the bug for 4 months, do you have news? or a solution to this problem
 *  [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/)
 * (@gabrielberzescu)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/comment-29/#post-12195119)
 * Hello [@deuns26](https://wordpress.org/support/users/deuns26/)
 * I can not find the bug report, so I am issuing it again, sorry — this has not
   happened before.
 * I am making sure to do as much as possible to set this into fast forward.
 * Best regards,
    Gabriel
 * **Edit: All right, I have found the initial bug report — it’s not missing, but
   there is indeed no news on it.**
    -  This reply was modified 6 years, 6 months ago by [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/).
    -  This reply was modified 6 years, 6 months ago by [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/).
 *  [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/)
 * (@gabrielberzescu)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/comment-29/#post-12195170)
 * All right,
 * News from the development team is that this is default WordPress behavior:
 * [https://core.trac.wordpress.org/ticket/31107](https://core.trac.wordpress.org/ticket/31107)
 * But they are preparing a custom code snippet to overcome it.
 * Will post it here later today.
 * Best regards,
    Gabriel
 *  Thread Starter [deuns26](https://wordpress.org/support/users/deuns26/)
 * (@deuns26)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/comment-29/#post-12195312)
 * Thank you, I hope you find a solution today. thank you so much
 *  [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/)
 * (@gabrielberzescu)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/comment-29/#post-12195338)
 * Hello,
 * The custom code has just arrived, I have tested it and it’s working well.
 *     ```
       add_filter('pre_comment_approved', function($status, $commentdata){
           if( 1 == get_option( 'comment_moderation' ) && 'private-page' == get_post_type( $commentdata['comment_post_ID'] )){
               return 0;
           }
           return $status;
       },10,2);
       ```
   
 * Please make sure to include it in a blank plugin, as instructed here:
 * [https://www.cozmoslabs.com/docs/profile-builder-2/developers-knowledge-base/](https://www.cozmoslabs.com/docs/profile-builder-2/developers-knowledge-base/)
 * Best of regards,
    Gabriel
 *  Thread Starter [deuns26](https://wordpress.org/support/users/deuns26/)
 * (@deuns26)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/comment-29/#post-12196495)
 * Thank you this only works for comment pending validation
    the notification for
   A new comment is published does not work
 *  [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/)
 * (@gabrielberzescu)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/comment-29/#post-12199180)
 * Glad to help!
 * This other thing is not currently possible, because the author of the private
   page is considered to be the user himself, not the admin.
 * With the best of regards,
    Gabriel

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Comment’ is closed to new replies.

 * ![](https://ps.w.org/client-portal/assets/icon-256x256.png?rev=1391969)
 * [Client Portal - Private user pages and login](https://wordpress.org/plugins/client-portal/)
 * [Support Threads](https://wordpress.org/support/plugin/client-portal/)
 * [Active Topics](https://wordpress.org/support/plugin/client-portal/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/client-portal/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/client-portal/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [Gabriel Berzescu](https://wordpress.org/support/users/gabrielberzescu/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/comment-29/#post-12199180)
 * Status: resolved