コード例 #1
0
ファイル: wpmandrill.php プロジェクト: wiratama/gardenbal
 static function getConnected()
 {
     if (!isset(self::$mandrill)) {
         try {
             require_once plugin_dir_path(__FILE__) . '/lib/mandrill.class.php';
             self::$mandrill = new Mandrill(self::getAPIKey());
         } catch (Exception $e) {
         }
     }
 }