| 1 |
<?php |
| 2 |
|
| 3 |
// If try to direct access plugin folder it will Exit |
| 4 |
|
| 5 |
use BitApps\Integrations\Core\Util\Activation; |
| 6 |
use BitApps\Integrations\Core\Util\Hooks; |
| 7 |
|
| 8 |
if (!defined('ABSPATH')) { |
| 9 |
exit; |
| 10 |
} |
| 11 |
|
| 12 |
// Hooks::add('wp_insert_site', [Activation::class, 'handle_new_site'], 10, 1); |
| 13 |
Hooks::add('wp_initialize_site', [Activation::class, 'handle_new_site'], 200, 1); |
| 14 |
|
| 15 |
if (is_user_logged_in()) { |
| 16 |
// Add filter if the user is logged in to fetch the ID. |
| 17 |
Hooks::filter('wpcf7_verify_nonce', '__return_true'); |
| 18 |
} |
| 19 |
|