Exemplo n.º 1
0
 public static function init()
 {
     if (self::is_gravityforms_installed()) {
         global $gf_cpt_addon;
         //include the base class
         require_once self::get_base_path() . '/gfcptaddonbase.php';
         //only supports 1.5 and over
         require_once self::get_base_path() . '/gfcptaddon_1-5.php';
         $gf_cpt_addon = new GFCPTAddon1_5();
         //start me up!
         $gf_cpt_addon->init(__FILE__);
     }
 }