'LayerSlider WP', 'repoUrl' => LS_REPO_BASE_URL, 'root' => LS_ROOT_FILE, 'version' => LS_PLUGIN_VERSION, 'itemID' => LS_MARKETPLACE_ID, 'codeKey' => 'layerslider-purchase-code', 'authKey' => 'layerslider-authorized-site', 'channelKey' => 'layerslider-release-channel', 'activationKey' => 'layerslider-activation-id' )); // Load locales add_action('plugins_loaded', 'layerslider_plugins_loaded'); function layerslider_plugins_loaded() { load_plugin_textdomain('LayerSlider', false, LS_PLUGIN_SLUG . '/locales/' ); } // Offering a way for authors to override LayerSlider resources by // triggering filter and action hooks after the theme has loaded. add_action('after_setup_theme', 'layerslider_after_setup_theme'); function layerslider_after_setup_theme() { // Set the LS_ROOT_URL constant $url = apply_filters('layerslider_root_url', plugins_url('', __FILE__)); define('LS_ROOT_URL', $url); // Trigger the layerslider_ready action hook layerslider_loaded(); // Backwards compatibility for theme authors LS_Config::checkCompatibility(); } // Sets up LayerSlider as theme-bundled version by // disabling certain features and hiding premium notices. function layerslider_set_as_theme() { LS_Config::setAsTheme(); } function layerslider_hide_promotions() { LS_Config::set('promotions', false); }