function x_soliloquy_remove_license_functionality()
 {
     if (is_admin()) {
         //
         // 1. Remove the settings menu.
         // 2. Remove license notices.
         //
         remove_action('admin_menu', array(Soliloquy_Settings::get_instance(), 'admin_menu'));
         // 1
         remove_action('admin_notices', array(Soliloquy_License::get_instance(), 'notices'));
         // 2
     }
 }
Exemplo n.º 2
0
 /**
  * Returns the singleton instance of the class.
  *
  * @since 1.0.0
  *
  * @return object The Soliloquy_Settings object.
  */
 public static function get_instance()
 {
     if (!isset(self::$instance) && !self::$instance instanceof Soliloquy_Settings) {
         self::$instance = new Soliloquy_Settings();
     }
     return self::$instance;
 }