File Manager / wp-content Search Upload New Item Settings File "db5.php" Full path: /home1/epichome/public_html/wp-content/db5.php File size: 60.67 B (60.67 KB bytes) MIME-type: text/x-php Charset: utf-8 Download Open Edit Advanced Editor Back
/home/pharmacy/www/wp-content/plugins/maxbuttons/classes/integrations.php
<?php
declare(strict_types=1);
namespace MaxButtons;
defined('ABSPATH') or die('No direct access permitted');

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


	public 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();

		}


	public static function load_integrations()
	{

	}

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

		do_action('maxbutton-direct-integrations');

	}


} // class