Using the New Bright WordPress plugin

We are happy to announce that the Bright pluginware for WordPress has been rebuilt, with a few fancy new features. For the purposes of this document, this new plugin is called the "Bright Platform for WordPress", and has a plugin slug of bright-wordpress.

New Features:

  • in the old Bright, there were several bright plugins, but now there is only one.
  • in the old Bright, you would activate different plugins like the "Bright Template Pack", "WooCommerce Integration", etc. In the Bright Platform for WordPress, these are activated via the settings page.
  • the new Bright platform includes automated updating via the typical WordPress plugin updates page.

Why upgrade?

Get automated updates is a great reason.

Bright Class AutoLoading

If you have a Bright customization plugin that had a line like this:

if (!class_exists('Bright\\Wordpress'))
   require_once(plugin_dir_path( __FILE__ ) . '../bright/bright.php');

We recommend for the smoothest transition converting the following block:

if (!class_exists('Bright\\Wordpress')) {
  if (file_exists(plugin_dir_path( __FILE__ ) . '../bright-wordpress/bright-wordpress.php'))
    require_once(plugin_dir_path( __FILE__ ) . '../bright-wordpress/bright-wordpress.php');    
  else
    if (file_exists(plugin_dir_path( __FILE__ ) . '../bright/bright.php'))    
      require_once(plugin_dir_path( __FILE__ ) . '../bright/bright.php');
}

Note, if you are ok to disable your customization plugin during the migration, the following is sufficient:

if (!class_exists('Bright\Wordpress')) 
  if (file_exists(plugin_dir_path( **FILE** ) . '../bright-wordpress/bright-wordpress.php')) 
    require_once(plugin_dir_path( **FILE** ) . '../bright-wordpress/bright-wordpress.php');

Please follow these simple steps:

  • load the new bright-wordpress plugin.
  • disable ALL the old bright WordPress plugins.
  • enable the new bright-wordpress plugin

Please now navigate to your bright settings page:

[your-url]/wp-admin/admin.php?page=bright_options_settings

And enable the features you require:

That's it!