/** * Initialize the plugin by loading admin scripts & styles and adding a * settings page and menu. * * @since 0.0.1 */ private function __construct() { $plugin = Idea_Factory::get_instance(); $this->plugin_slug = $plugin->get_plugin_slug(); require_once IDEA_FACTORY_DIR . '/admin/includes/class.settings.php'; require_once IDEA_FACTORY_DIR . '/admin/includes/class.meta.php'; require_once IDEA_FACTORY_DIR . '/admin/includes/class.column-mods.php'; }
/** * Return an instance of this class. * * @since 0.0.1 * * @return object A single instance of this class. */ public static function get_instance() { // If the single instance hasn't been set, set it now. if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }