PluginProbe ʕ •ᴥ•ʔ
JetFormBuilder — Dynamic Blocks Form Builder / 3.1.2
JetFormBuilder — Dynamic Blocks Form Builder v3.1.2
3.6.3.1 3.6.3 3.6.2.2 3.6.2.1 3.6.2 3.6.1.1 3.6.1 3.6.0.1 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.1.0 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.1.6 1.1.7 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.4.3 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.1.0 2.1.1 2.1.10 2.1.11 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.1.8 2.1.9 3.0.0 3.0.0.1 3.0.0.2 3.0.0.3 3.0.1 3.0.1.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.0.1 3.1.1 3.1.2 3.1.3 3.1.4 3.1.5 3.1.6 3.1.7 3.1.8 3.1.9 3.2.0 3.2.1 3.2.2 3.2.3 3.3.0 3.3.1 3.3.2 3.3.3 3.3.3.1 3.3.4 3.3.4.1 3.3.4.2 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.5.1 3.4.5.2 3.4.6 3.4.7 3.4.7.1 3.5.0 3.5.1 3.5.1.1 3.5.1.2 3.5.2 3.5.2.1 3.5.3 3.5.4 3.5.5 3.5.6 3.5.6.1 3.5.6.2 3.5.6.3 3.6.0
jetformbuilder / assets / src / admin / pages / jfb-settings / addons-tabs.js
jetformbuilder / assets / src / admin / pages / jfb-settings Last commit date
captcha 2 years ago gateways 2 years ago proAddons 2 years ago proGateways 2 years ago sidebar 2 years ago tabs 2 years ago IsPROIcon.vue 2 years ago SettingsPage.vue 2 years ago addons-tabs.js 2 years ago index.js 2 years ago
addons-tabs.js
59 lines
1 import hubspot from './proAddons/hubspot';
2 import addressAutocomplete from './proAddons/addressAutocomplete';
3 import convertkit from './proAddons/convertkit';
4 import mailerlite from './proAddons/mailerlite';
5 import moosend from './proAddons/moosend';
6 import stripe from './proGateways/stripe';
7
8 const { addFilter } = wp.hooks;
9
10 const addons = [
11 addressAutocomplete,
12 hubspot,
13 convertkit,
14 mailerlite,
15 moosend,
16 ];
17
18 const gateways = [
19 stripe
20 ];
21
22 const getModulesNames = modules => modules.map( item => (
23 item.component.name
24 ) );
25
26
27 const run = () => {
28 addFilter( 'jet.fb.register.settings-page.tabs', 'jet-form-builder', modules => {
29 const names = getModulesNames( modules );
30
31 for ( const addon of addons ) {
32 if ( names.includes( addon.component.name ) ) {
33 continue;
34 }
35 modules.push( addon );
36 }
37
38 return modules;
39 }, 1000 );
40
41 addFilter( 'jet.fb.register.gateways', 'jet-form-builder', modules => {
42 const names = getModulesNames( modules );
43
44 for ( const gateway of gateways ) {
45 if ( names.includes( gateway.component.name ) ) {
46 continue;
47 }
48 modules.push( gateway );
49 }
50
51 return modules;
52 }, 1000 );
53 };
54
55 if ( ! window?.JetFBPageConfig?.is_active ) {
56 run();
57 }
58
59