• File: fusionredux-framework.php
  • Full Path: /home/docteuh/www/plugins/redux/framework/fusionredux-framework.php
  • Date Modified: 11/20/2023 6:12 PM
  • File size: 2.2 KB
  • MIME-type: text/x-php
  • Charset: utf-8
<?php
/**
 * The FusionRedux Framework Plugin
 *
 * A simple, truly extensible and fully responsive options framework
 * for WordPress themes and plugins. Developed with WordPress coding
 * standards and PHP best practices in mind.
 *
 * Plugin Name:     FusionRedux Framework
 * Plugin URI:      http://wordpress.org/plugins/fusionredux-framework
 * Github URI:      https://github.com/FusionReduxFramework/fusionredux-framework
 * Description:     FusionRedux is a simple, truly extensible options framework for WordPress themes and plugins.
 * Author:          Team FusionRedux
 * Author URI:      http://fusionreduxframework.com
 * Version:         3.5.9.8
 * Text Domain:     fusionredux-framework
 * License:         GPL3+
 * License URI:     http://www.gnu.org/licenses/gpl-3.0.txt
 * Domain Path:     FusionReduxCore/languages
 * Provides:        FusionReduxFramework
 *
 * @package         FusionReduxFramework
 * @author          Dovy Paukstys <dovy@fusionreduxframework.com>
 * @author          Kevin Provance <kevin@fusionreduxframework.com>
 * @license         GNU General Public License, version 3
 * @copyright       2012-2016 FusionRedux.io
 */

// Exit if accessed directly
if( !defined( 'ABSPATH' ) ) {
    die;
}

// Require the main plugin class
require_once wp_normalize_path( plugin_dir_path( __FILE__ ) . 'class.fusionredux-plugin.php' );

// Register hooks that are fired when the plugin is activated and deactivated, respectively.
register_activation_hook( __FILE__, array( 'FusionReduxFrameworkPlugin', 'activate' ) );
register_deactivation_hook( __FILE__, array( 'FusionReduxFrameworkPlugin', 'deactivate' ) );

// Get plugin instance
//add_action( 'plugins_loaded', array( 'FusionReduxFrameworkPlugin', 'instance' ) );

// The above line prevents FusionReduxFramework from instancing until all plugins have loaded.
// While this does not matter for themes, any plugin using FusionRedux will not load properly.
// Waiting until all plugins have been loaded prevents the FusionReduxFramework class from
// being created, and fails the !class_exists('FusionReduxFramework') check in the sample_config.php,
// and thus prevents any plugin using FusionRedux from loading their config file.
FusionReduxFrameworkPlugin::instance();