Created
May 7, 2015 15:55
-
-
Save ericakfranz/c4ab3381991df6afbabe to your computer and use it in GitHub Desktop.
Soliloquy Remove License Info
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
<?php | |
/** | |
* Plugin Name: Soliloquy - Remove License Info | |
* Plugin URI: http://soliloquywp.com | |
* Version: 1.0 | |
* Author: Thomas Griffin | |
* Author URI: http://www.thomasgriffin.io | |
* Description: Removes the Settings menu and license notices. | |
*/ | |
add_action( 'init', 'tgm_remove_soliloquy_license_stuff', 999 ); | |
function tgm_remove_soliloquy_license_stuff() { | |
// Do nothing if Soliloquy is not active. | |
if ( ! class_exists( 'Soliloquy' ) ) { | |
return; | |
} | |
// 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