WP-Members Invite Codes 2.1.2 has been released. This version includes some code improvements as well improving the plugin’s deployment operations. 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 Invite Codes, 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.
WP CLI
Command line operations have been added to allow you to update the plugin settings and options from the WP CLI interface. It also adds commands to add and manage invite codes in bulk or individually.