Archived topic
Hide Activation Email
4 replies · Started by Steven McGregor on October 13, 2015
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
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/
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 :)
Excellent, thanks guys.
Glad we could help :)
