# maxbuttons/7.1.3/classes/integrations.php

MaxButtons – Create buttons, version 7.1.3. 40 lines.

- Page: https://pluginprobe.com/plugins/maxbuttons/7.1.3/code/classes/integrations.php
- Raw: https://pluginprobe.com/plugins/maxbuttons/7.1.3/raw/classes/integrations.php
- Modified: 2018-04-27T05:47:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/maxbuttons/7.1.3/code/classes/integrations.php#L10-L20`.

```php
<?php
namespace MaxButtons;
defined('ABSPATH') or die('No direct access permitted');

// probably load this after all plugins are loaded.
class maxIntegrations
{


	static function init()
	{
		// check and init after plugin loaded.
		add_action('plugins_loaded', array(maxUtils::namespaceit('maxIntegrations'), 'load_integrations'), 999);

		// integrations that fire right now, like ones that are based on actions and filters.
		// This are the ones that also can't crash the plugin, since it's hook based - no hook - no call.
		self::doDirectInit();

		//remove_action( 'wp_ajax_fusion_pallete_elements', array( $instance,'get_pallete_elements') );
	}


	static function load_integrations()
	{

	}

	static function doDirectInit()
	{
		$integration_path = MB()->get_plugin_path() . 'assets/integrations/';
		require_once( $integration_path . "siteorigins_builder/sitebuilder.php");
		require_once( $integration_path . "shortcake/shortcake.php");
	//	require_once( $integration_path . "gutenberg/gutenberg.php");

		do_action('maxbutton-direct-integrations');

	}

} // class

```
