PluginProbe
MaxButtons – Create buttons / 6.28
MaxButtons – Create buttons v6.28
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
← All changes | classes/integrations.php +20 -24 7.13.16.28 View file →
@@ -1,42 +1,38 @@
1 -<?php
1 +<?php
2 2 namespace MaxButtons;
3 3 defined('ABSPATH') or die('No direct access permitted');
4 4
5 -// probably load this after all plugins are loaded.
5 +// probably load this after all plugins are loaded.
6 6 class maxIntegrations
7 7 {
8 8
9 9
10 - static function init()
10 + static function init()
11 11 {
12 - // check and init after plugin loaded.
13 - add_action('plugins_loaded', array(maxUtils::namespaceit('maxIntegrations'), 'load_integrations'), 999);
12 + // check and init after plugin loaded.
13 + add_action('plugins_loaded', array(maxUtils::namespaceit('maxIntegrations'), 'load_integrations'), 999);
14 14
15 - // integrations that fire right now, like ones that are based on actions and filters.
16 - // This are the ones that also can't crash the plugin, since it's hook based - no hook - no call.
17 - self::doDirectInit();
18 -
19 - //remove_action( 'wp_ajax_fusion_pallete_elements', array( $instance,'get_pallete_elements') );
15 + // integrations that fire right now, like ones that are based on actions and filters.
16 + // This are the ones that also can't crash the plugin, since it's hook based - no hook - no call.
17 + self::doDirectInit();
18 +
19 + //remove_action( 'wp_ajax_fusion_pallete_elements', array( $instance,'get_pallete_elements') );
20 20 }
21 -
22 -
21 +
22 +
23 23 static function load_integrations()
24 24 {
25 -
25 +
26 26 }
27 -
28 - static function doDirectInit()
27 +
28 + static function doDirectInit()
29 29 {
30 - $integration_path = MB()->get_plugin_path() . 'assets/integrations/';
31 - require_once( $integration_path . "siteorigins_builder/sitebuilder.php");
32 - require_once( $integration_path . "shortcake/shortcake.php");
33 - require_once( $integration_path . "gutenberg/gutenberg.php");
34 - require_once( $integration_path . "cache/cache.php");
35 - require_once( $integration_path . "tablepress/tablepress.php");
30 + $integration_path = MB()->get_plugin_path() . 'assets/integrations/';
31 + require_once( $integration_path . "siteorigins_builder/sitebuilder.php");
32 + require_once( $integration_path . "shortcake/shortcake.php");
36 33
37 - do_action('maxbutton-direct-integrations');
38 -
34 + do_action('maxbutton-direct-integrations');
35 +
39 36 }
40 -
41 37
42 38 } // class