| 1 |
<?php |
| 2 |
|
| 3 |
namespace forge12\contactform7\CF7DoubleOptIn { |
| 4 |
if (!defined('ABSPATH')) { |
| 5 |
exit; |
| 6 |
} |
| 7 |
|
| 8 |
/** |
| 9 |
* Class ControllerCF7 |
| 10 |
* |
| 11 |
* @package forge12\contactform7\CF7OptIn |
| 12 |
*/ |
| 13 |
class ControllerCF7 |
| 14 |
{ |
| 15 |
/** |
| 16 |
* Admin constructor. |
| 17 |
*/ |
| 18 |
public function __construct() |
| 19 |
{ |
| 20 |
require_once('Frontend.class.php'); |
| 21 |
$Frontend = new Frontend(); |
| 22 |
|
| 23 |
require_once('Backend.class.php'); |
| 24 |
$Backend = new Backend(); |
| 25 |
|
| 26 |
require_once('ConditionalFields.class.php'); |
| 27 |
$CF = new ConditionalFields(); |
| 28 |
} |
| 29 |
} |
| 30 |
|
| 31 |
add_action('f12_cf7_doubleoptin_ui_after_load_compatibilities', function(){ |
| 32 |
if(function_exists('wpcf7')) { |
| 33 |
$Controller = new ControllerCF7(); |
| 34 |
} |
| 35 |
}); |
| 36 |
} |