PluginProbe
MaxButtons – Create buttons / 6.5
MaxButtons – Create buttons v6.5
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 6.5, at classes/integrations.php

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