Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
// 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() ) {
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