Cyber Week Sale! Get $20 off GP Premium, $40 off our new Lifetime license, and 45% off license renewals/extensions! Learn more

[Resolved] Hide Activation Email

Home Forums Support Hide Activation Email

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #143980
    Steven McGregor

    Just a thought Tom…

    I am using GPP on some of my client’s sites and I thought it might be good to hide the activation email address once the GPP plugin has been activated.

    It may seem like something small but I wouldn’t want anyone else to know the address and use it on other sites that have not paid.

    Cheers,
    Steven

    #144010
    Tom
    Lead Developer
    Lead Developer

    Hi Steven,

    Give this function a try:

    add_action( 'admin_head','generate_hide_activation' );
    function generate_hide_activation()
    { ?>
        <style>
            #gen-license-keys {
                display: none;
            }
        </style>
    <?php }

    Adding PHP: https://generatepress.com/knowledgebase/adding-php-functions/

    #144012
    bdbrown

    Hi Steven. Couple of options:

    1. Use the Add Admin CSS plugin with this CSS:

    .appearance_page_generate-options #gen-license-keys .email-container {
        display: none;
    }
    

    Or add this to your child theme functions.php file:

    add_action('admin_head', 'my_admin_styles');
    function my_admin_styles() {
        echo '<style>
            .appearance_page_generate-options #gen-license-keys .email-container {
                display: none;
            }
        </style>';
    }
    

    Edit – I see Tom beat me to it while I was writing my reply 🙂

    #144015
    Steven McGregor

    Excellent, thanks guys.

    #144097
    bdbrown

    Glad we could help 🙂

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.