WP-Members Advanced Options 2.3.5 has been released. This version includes some code improvements as well as some bug fixes. There are also WP CLI commands added for managing the plugin’s options in the command line.
Improvements
The RocketGeek utilities library is removed in this update. This is a code library that had been included in all of the premium extensions in case there were changes that were not included in the version packaged with the core plugin. However, at this point in time, it is better to rely on the core plugin, since that always contains the most up-to-date package. This avoids unnecessary file inclusion and potential for version conflicts.
This version specifies the “autoload” value for its stored options. WordPress allows options to be automatically loaded when WordPress loads, not automatically loaded, or left up to WordPress to decide. My interest in plugin development is always to have the most efficient loading possible – only loading what is needed when it is needed and keeping things as lightweight as possible. Adjusting to a specific value for autoload has already occurred in the core plugin and it is now being evaluated and updated in the premium extensions. In the Advanced Options, the only option value that will autoload is the main settings. These are loaded anyway anytime the core plugin loads, which is every page load. All other options are explicitly defined to load when requested, so they will not load automatically with a page load, keeping your autoloaded option values at a minimum.
Bug Fixes
This version fixes a bug between the “Change WP Logout URL to WP-Members Logout URL” and “Change the WP-Members Logout URL to the WP Logout URL” options. These can’t both be true at the same time.
This version fixes a bug that causes two emails to go out when using the setting to replace the native WP email with the WP-Members notification email.
WP CLI
Advanced Options did not previously have WP CLI commands. This version adds commands for managing the option settings through the command line. They are inline documented, so documentation will display in the command line, along with help. Documentation on the web site will be forthcoming.