/** * 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; }
/** * 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(); }