| @@ -1,5 +1,6 @@ | ||
| 1 | 1 | <?php |
| 2 | +namespace MaxButtons; | |
| 2 | 3 | defined('ABSPATH') or die('No direct access permitted'); |
| 3 | 4 | |
| 4 | 5 | // probably load this after all plugins are loaded. |
| 5 | 6 | class maxIntegrations |
| @@ -8,9 +9,9 @@ | ||
| 8 | 9 | |
| 9 | 10 | static function init() |
| 10 | 11 | { |
| 11 | 12 | // check and init after plugin loaded. |
| 12 | - add_action('plugins_loaded', array('maxIntegrations', 'load_integrations'), 999); | |
| 13 | + add_action('plugins_loaded', array(maxUtils::namespaceit('maxIntegrations'), 'load_integrations'), 999); | |
| 13 | 14 | |
| 14 | 15 | // integrations that fire right now, like ones that are based on actions and filters. |
| 15 | 16 | // This are the ones that also can't crash the plugin, since it's hook based - no hook - no call. |
| 16 | 17 | self::doDirectInit(); |
| @@ -32,9 +33,6 @@ | ||
| 32 | 33 | |
| 33 | 34 | do_action('maxbutton-direct-integrations'); |
| 34 | 35 | |
| 35 | 36 | } |
| 36 | - | |
| 37 | - | |
| 38 | - | |
| 39 | 37 | |
| 40 | 38 | } // class |