Today I loaded an update to the Advanced Options extension, which is probably one of the most popular of the available extensions for the plugin.
In addition to the list of features that you can review in the extension’s documentation, version 1.2 adds the following features:
Add/remove user pages from menu based on login state
When the login, register, and user profile page locations are identified in the main plugin options, this setting allows those to be toggled in menus automatically based on the user’s login state.
When the user is not logged in, the login and register page links would display; if the user is logged in, the user profile page link will display instead.
This only affects menus created in the WP menu section. This does not affect page links elsewhere, such as page widgets, etc.
Changed settings for WP-Members redirects to radio buttons
The redirect settings in the WP-Members settings had previously been checkboxes. As such, more than a single option could be selected. Except that when you do that, you end up in an endless redirect loop that can’t be broken. What’s worse, it required a db edit to remove the extension to fix the problem.
These settings are now a set of radio buttons so that only one option can be selected.
Added a number of filter hooks
The following filter hooks were added to the extension:
- wpmem_adv_toolbar_capability – allows changing the default capability (‘edit_posts’) for displaying the toolbar when the hide toolbar setting is enabled.
- wpmem_adv_dashboard_capability – allows changing the default capability (‘edit_posts’) for allowing dashboard access when dashboard access is restricted.
- wpmem_adv_wc_autologout_default – allows changing how messaging is handled when the WooCommerce autologin is disabled.
- wpmem_adv_wc_autologout_msg – allows filtering the message if the WooCommerce autologin is disabled, and the WP-Members messaging is not used.
Other updates
Some of the other updates were cleanup of some code, functions, and documentation.
Additionally, a number of processes were changed to take advantage of the expanding WP-Members API.