Skip to content

Instantly share code, notes, and snippets.

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 jemoreto/dc985840e77cb3504d14f3c6e7daa1c5 to your computer and use it in GitHub Desktop.
Save jemoreto/dc985840e77cb3504d14f3c6e7daa1c5 to your computer and use it in GitHub Desktop.
// Put this on your theme's functions.php
add_action( 'init', 'q11_remove_soliloquy_license_stuff', 999 );
function q11_remove_soliloquy_license_stuff() {
// Do nothing if Soliloquy is not active.
if ( !class_exists('Soliloquy') && !is_admin() ) {
return;
}
if (is_admin()) {
// Remove the Settings menu and license notices.
//remove_action( 'admin_menu', array( Soliloquy_Settings::get_instance(), 'admin_menu' ) );
remove_action( 'admin_notices', array( Soliloquy_License::get_instance(), 'notices' ) );
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment