} else { // Load the default language files load_plugin_textdomain('popup-maker', false, $popmake_lang_dir); } } } } // End if class_exists check /** * The main function responsible for returning the one true Popup_Maker * Instance to functions everywhere. * * Use this function like you would a global variable, except without needing * to declare the global. * * Example: <?php $popmake = PopMake(); ?> * * @since 1.0 * @return object The one true Popup_Maker Instance */ function PopMake() { return Popup_Maker::instance(); } PopMake(); function popmake_initialize() { // Get POPMAKE Running do_action('popmake_initialize'); } add_action('plugins_loaded', 'popmake_initialize', 0);
function popmake_initialize() { // Disable Unlimited Themes extension if active. remove_action('popmake_initialize', 'popmake_ut_initialize'); // Get Popup Maker Running PopMake(); do_action('popmake_initialize'); PopMake()->process_upgrades(); }