Kirki_Toolkit::get_instance PHP Method

get_instance() public static method

Access the single instance of this class.
public static get_instance ( ) : object
return object Kirki_Toolkit.
        public static function get_instance()
        {
            if (null === self::$instance) {
                self::$instance = new self();
            }
            return self::$instance;
        }

Usage Example

Example #1
0
 /**
  * Returns the Kirki object
  */
 function Kirki()
 {
     // Make sure the class is instanciated
     $kirki = Kirki_Toolkit::get_instance();
     // The path of the current Kirki instance
     Kirki::$path = dirname(__FILE__);
     return $kirki;
 }
All Usage Examples Of Kirki_Toolkit::get_instance
Kirki_Toolkit