Is there a way to hide my admin email?

If the Automated Responses option is chosen, “Send a copy to Administrator”, it shows the admin’s email in the To field. Is there a way to hide this?

  • Majid
    • Recruit

    Hey Trevor,

    The admin email field in Automated Email response section can be hidden using the following piece of PHP code.

    function hide_cc_email_field( $fields ) {
    // Get Admin Email
    $fields['cc_email']['value'] = get_bloginfo('admin_email');
    // Change field type from select to hidden
    $fields['cc_email']['type'] = 'hidden';
    return $fields;
    add_filter( 'ms_view_settings_prepare_email_fields', 'hide_cc_email_field' );

    You will have to add this to the bottom of your theme’s functions.php, or you can download the attached file and extract into an mu-plugin.



  • Trevor
    • Site Builder, Child of Zeus

    Hi Majid,

    I had applied this code a while back but didn’t have a chance to test it. I just added it to another Multisite with the same setup and also included this code. It doesn’t seem to be working though, and my admin email still shows in the CC field of the automated emails.

    Do some core code or plugin code change that may be preventing this from working?



Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.