function init_GMMediaTags() { if (!defined('ABSPATH')) { die; } define('GMMEDIATAGSPATH', plugin_dir_path(__FILE__)); define('GMMEDIATAGSURL', plugins_url('/', __FILE__)); require_once GMMEDIATAGSPATH . 'includes/GMMediaTags.class.php'; // allow disabling plugin from another plugin or theme via filter if (apply_filters('gm_mediatags_enable', true)) { GMMediaTags::init(); } }
static function register() { self::$done = true; }