/** * Provides access to a single instances of the class using the singleton pattern * @return object */ public static function get_instance() { if (is_null(self::$_instance)) { self::$_instance = new self(); } return self::$_instance; }
/** * Constructs Included Class */ public function initiate_class() { // Get Instance For Settings Panel self::$admin_settings = WooCommerce_Role_Based_Price_Admin_Settings::get_instance(); }