示例#1
0
文件: CMB2_Ajax.php 项目: jrfnl/CMB2
 /**
  * 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;
 }
示例#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();
}