static function instance() { if (!self::$instance) { self::$instance = new self(); } return self::$instance; }
function init_capture() { // Capture and store form submission if (class_exists('WPCF7_Mail')) { // for CF7 >= 3.9 add_action('wpcf7_before_send_mail', array($this, 'storage_capture')); } else { // for CF7 < 3.9 add_action('wpcf7_mail_sent', array($this, 'storage_capture_legacy')); } // Include the automatic updater include plugin_dir_path(__FILE__) . 'lib/envato-automatic-plugin-update/envato-plugin-update.php'; PresetoPluginUpdateEnvato::instance()->add_item(array('id' => 7806229, 'basename' => plugin_basename(__FILE__))); }