Created
November 24, 2018 13:54
-
-
Save jemoreto/dc985840e77cb3504d14f3c6e7daa1c5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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