Skip to content

Instantly share code, notes, and snippets.

@thomasgriffin
Created October 27, 2014 12:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thomasgriffin/9a70130f00d5be84245f to your computer and use it in GitHub Desktop.
Save thomasgriffin/9a70130f00d5be84245f to your computer and use it in GitHub Desktop.
Hide the license key from OptinMonster settings area.
<?php
add_action( 'optin_monster_admin_styles', 'tgm_om_hide_license_key_fields' );
function tgm_om_hide_license_key_fields( $view ) {
if ( 'overview' !== $view ) {
return;
}
?>
<style type="text/css">#optin-monster-settings-key-box, #optin-monster-settings-key-type-box { display: none; }</style>
<?php
}
@brianbom
Copy link

Where do I put t the code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment