fix: Standardize toggle switch behavior across plugin - Standardize the Access Manager toggle switches to match working implementations - Use the standard update_option AJAX handler for main toggles - Add new toggle settings to allowed options in Admin Manager - Ensure accordion panels stay open/closed and show saved settings correctly - Implement consistent notification display with proper placement - Synchronize role checkboxes with main toggle switches - Fix the Settings UI with improved styling and behavior

This commit is contained in:
Marcus Quinn
2025-03-25 18:10:54 +00:00
parent 3426a5f4ae
commit 0fc2009391
2 changed files with 134 additions and 116 deletions

View File

@ -113,7 +113,9 @@ class WP_Allstars_Admin_Manager {
'wp_allstars_max_height',
'wp_allstars_exclude_urls',
'wp_allstars_image_name_pattern',
'wp_allstars_image_alt_pattern'
'wp_allstars_image_alt_pattern',
'wp_allstars_hide_admin_bar',
'wp_allstars_restrict_dashboard'
);
if (!in_array($option, $allowed_options)) {