redux-framework.php 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <?php
  2. /**
  3. * The Redux Framework Plugin
  4. *
  5. * A simple, truly extensible and fully responsive options framework
  6. * for WordPress themes and plugins. Developed with WordPress coding
  7. * standards and PHP best practices in mind.
  8. *
  9. * Plugin Name: Redux Framework
  10. * Plugin URI: http://wordpress.org/plugins/redux-framework
  11. * Github URI: https://github.com/ReduxFramework/redux-framework
  12. * Description: Redux is a simple, truly extensible options framework for WordPress themes and plugins.
  13. * Author: Team Redux
  14. * Author URI: http://reduxframework.com
  15. * Version: 3.6.16
  16. * Text Domain: redux-framework
  17. * License: GPL2+
  18. * License URI: http://www.gnu.org/licenses/gpl-3.0.txt
  19. * Domain Path: ReduxCore/languages
  20. * Provides: ReduxFramework
  21. *
  22. * @package ReduxFramework
  23. * @author Dovy Paukstys <dovy@reduxframework.com>
  24. * @author Kevin Provance <kevin@reduxframework.com>
  25. * @license GNU General Public License, version 3
  26. * @copyright 2012-2016 Redux.io
  27. */
  28. // Exit if accessed directly
  29. if( !defined( 'ABSPATH' ) ) {
  30. die;
  31. }
  32. // Require the main plugin class
  33. require_once plugin_dir_path( __FILE__ ) . 'class.redux-plugin.php';
  34. // Register hooks that are fired when the plugin is activated and deactivated, respectively.
  35. register_activation_hook( __FILE__, array( 'ReduxFrameworkPlugin', 'activate' ) );
  36. register_deactivation_hook( __FILE__, array( 'ReduxFrameworkPlugin', 'deactivate' ) );
  37. // Get plugin instance
  38. //add_action( 'plugins_loaded', array( 'ReduxFrameworkPlugin', 'instance' ) );
  39. // The above line prevents ReduxFramework from instancing until all plugins have loaded.
  40. // While this does not matter for themes, any plugin using Redux will not load properly.
  41. // Waiting until all plugins have been loaded prevents the ReduxFramework class from
  42. // being created, and fails the !class_exists('ReduxFramework') check in the sample_config.php,
  43. // and thus prevents any plugin using Redux from loading their config file.
  44. ReduxFrameworkPlugin::instance();