/** * Access this class's working instance. * If the instance hasn't been set, set it now. * * @wp-hook void * @uses void * @since 2.0.0 * @return object of this class */ public static function get_instance() { if (null == self::$instance) { self::$instance = new self(); } return self::$instance; }
/** * Get our settings validation class. * * @wp-hook void * @uses void * @since 2.0.0 * @return void */ function get_validation() { // Include our settings validation class. require_once $this->plugin_dir_path . 'admin/assets/class-' . $this->prefix . '-validation.php'; $this->validation = NGGOBASIC_Validation::get_instance(); $this->validation->init(); }