PluginProbe
Bit integrations – Form Integration, Webhook, Spreadsheets, CRM, LMS & Email Automation / trunk
Bit integrations – Form Integration, Webhook, Spreadsheets, CRM, LMS & Email Automation vtrunk
2.10.4 2.10.3 2.10.2 2.10.1 2.10.0 2.9.2 2.9.1 2.9.0 2.8.11 2.8.10 2.8.8 2.8.9 2.8.7 2.8.6 2.8.5 1.5.4 1.5.5 1.5.6 1.5.7 1.5.9 1.6.1 1.6.2 1.6.3 1.6.4 2.0.0 All 124 releases
bit-integrations / backend / hooks.php

hooks.php in Bit integrations – Form Integration, Webhook, Spreadsheets, CRM, LMS & Email Automation trunk, at backend/hooks.php

19 lines 503 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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