Exemple #1
0
 /**
  * Get the singleton instance of this class
  * @since 2.2.2
  * @return object
  */
 public static function get_instance()
 {
     if (!self::$instance instanceof self) {
         self::$instance = new self();
     }
     return self::$instance;
 }
Exemple #2
0
/**
 * Get instance of the CMB2_Ajax class
 * @since  2.0.0
 * @return CMB2_Ajax object CMB2 utilities class
 */
function cmb2_ajax()
{
    return CMB2_Ajax::get_instance();
}