PluginProbe
MaxButtons – Create buttons / 9.8.2
MaxButtons – Create buttons v9.8.2
6.23 6.24 6.25 6.26 6.26.1 6.27 6.28 6.3 6.4 6.5 6.6 6.7 6.8 6.9 7.0 7.1 7.1.1 7.1.2 7.1.3 7.10 7.11 7.13 7.13.1 7.13.2 7.13.3 All 100 releases
maxbuttons / classes / integrations.php

integrations.php in MaxButtons – Create buttons 9.8.2, at classes/integrations.php

44 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 declare(strict_types=1);
3 namespace MaxButtons;
4 defined('ABSPATH') or die('No direct access permitted');
5
6 // probably load this after all plugins are loaded.
7 class maxIntegrations
8 {
9
10
11 public static function init()
12 {
13 // check and init after plugin loaded.
14 add_action('plugins_loaded', array(maxUtils::namespaceit('maxIntegrations'), 'load_integrations'), 999);
15
16 // integrations that fire right now, like ones that are based on actions and filters.
17 // This are the ones that also can't crash the plugin, since it's hook based - no hook - no call.
18 self::doDirectInit();
19
20 }
21
22
23 public static function load_integrations()
24 {
25
26 }
27
28 protected static function doDirectInit()
29 {
30 $integration_path = MB()->get_plugin_path() . 'assets/integrations/';
31 require_once( $integration_path . "siteorigins_builder/sitebuilder.php");
32 require_once( $integration_path . "gutenberg/gutenberg.php");
33 require_once( $integration_path . "cache/cache.php");
34 require_once( $integration_path . "tablepress/tablepress.php");
35 require_once( $integration_path . "beaver_builder/beaver_builder.php");
36 require_once( $integration_path . "elementor/elementor.php");
37
38 do_action('maxbutton-direct-integrations');
39
40 }
41
42
43 } // class
44