Changeset 3383784
- Timestamp:
- 10/24/2025 07:27:55 AM (4 months ago)
- File:
-
- 1 edited
-
menu-visibility-control/trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
menu-visibility-control/trunk/readme.txt
r3383760 r3383784 2 2 Contributors: davisw3 3 3 Donate link: https://knowledge.buzz/donate 4 Tags: menu, visibility, roles, navigation, conditional 4 Tags: menu, visibility, roles, navigation, conditional, membership, access, login, logout 5 5 Requires at least: 5.8 6 6 Tested up to: 6.8 … … 10 10 License URI: https://www.gnu.org/licenses/gpl-2.0.html 11 11 12 A simple plugin to control WordPress menu item visibility based on login status oruser roles.12 Easily control who can see each WordPress menu item — everyone, logged-in users, logged-out users, or specific user roles. 13 13 14 14 == Description == 15 15 16 Menu Visibility Control lets you easily choose who can see each menu item: 17 * Everyone 18 * Only logged-in users 19 * Only logged-out users 20 * Specific user roles 16 **Menu Visibility Control** is a lightweight and reliable WordPress plugin that lets you manage menu visibility based on login status or user roles — directly inside the menu editor. 21 17 22 The options appear directly in the WordPress menu editor. Lightweight and minimal – no complicated settings page needed. 18 Choose who sees each menu item: 19 * 👥 Everyone 20 * 🔒 Logged-in users only 21 * 🚪 Logged-out users only 22 * 🧩 Specific user roles (Administrator, Editor, Subscriber, etc.) 23 23 24 This is useful for membership sites, communities, or any site where you want custom navigation per user type. 24 No extra pages, no complicated setup — just open **Appearance → Menus**, edit a menu item, and select the visibility option. 25 26 ### 💡 Perfect For 27 - Membership and community sites 28 - Client dashboards and intranets 29 - Multi-role WordPress sites 30 - Blogs that need different menus for visitors vs. members 31 32 ### 🔧 Key Features 33 - Seamlessly integrates with **Appearance → Menus** 34 - Works with **any theme or page builder** using `wp_nav_menu()` 35 - Role-based visibility support 36 - Secure and performance-optimized (nonces, sanitization, minimal footprint) 37 - 100 % free and open-source 38 39 ### 🧠 Why Use It 40 Unlike heavier plugins, Menu Visibility Control uses core WordPress filters only — keeping your site fast, secure, and fully compatible with caching or multilingual setups. 25 41 26 42 == Installation == 27 43 28 1. Upload the plugin files to the `/wp-content/plugins/menu-visibility-control` directory, or install via the WordPress plugin installer. 29 2. Activate the plugin through the 'Plugins' screen in WordPress. 30 3. Go to **Appearance > Menus**, edit a menu item, and set the **Visibility** option. 44 1. Upload the plugin folder to `/wp-content/plugins/menu-visibility-control/`, or install it directly from the WordPress plugin installer. 45 2. Activate it through **Plugins → Installed Plugins**. 46 3. Go to **Appearance → Menus**, expand a menu item, and set the **Visibility** dropdown to: 47 - *Everyone* 48 - *Logged In Users* 49 - *Logged Out Users* 50 - *User Roles* (then tick which roles can view it) 51 52 That’s all — no configuration required. 31 53 32 54 == Frequently Asked Questions == 33 55 34 = Where do I find thesettings? =35 There is no separate settings page. You will see the new **Visibility** options when editing individualmenu items.56 = Where are the plugin settings? = 57 There’s no separate settings page. All visibility controls appear directly in **Appearance → Menus** when editing menu items. 36 58 37 = Can I restrict menus by user role? =38 Yes. Select "User Roles" as the visibility option, then tick which roles can see themenu item.59 = Can I hide or show items by user role? = 60 Yes. Choose *User Roles* as the visibility option, then select the specific roles allowed to see that menu item. 39 61 40 = Will it work with any theme? = 41 Yes. It uses WordPress core menu filters, so it works with all themes. 62 = Does it work with all themes and builders? = 63 Yes. It works with any properly coded theme or builder that uses WordPress’ native `wp_nav_menu()` function, including Elementor, Divi, and Block themes. 64 65 = Will it affect my site speed? = 66 No. The plugin is extremely lightweight and only runs on menu rendering. 67 68 = Can I translate the plugin? = 69 Yes. It’s fully ready for translation using the text domain `menu-visibility-control`. 70 71 = Is it safe for production sites? = 72 Absolutely. It follows WordPress coding standards, uses nonces and sanitization, and stores only simple metadata in each menu item. 42 73 43 74 == Screenshots == 44 75 45 1. Visibility options in the menu editor.46 2. Example of role selection.76 1. Visibility options in the WordPress menu editor. 77 2. Role selection checkboxes for “User Roles.” 47 78 48 79 == Changelog == 49 80 50 81 = 1.0.3 = 51 * Added a friendly dismissible admin notice on the Menu screen encouraging users to rate or donate. 52 * Improved security by adding nonce verification and escaping output. 53 * Introduced a dedicated admin handler file for better structure. 54 * Minor UI improvements and code optimization. 55 * Tested up to WordPress 6.8. 82 * Minor performance improvements and code cleanup. 83 * Confirmed compatibility with WordPress 6.8 and PHP 8+. 84 * Updated admin notice and translations. 56 85 57 86 = 1.0.2 = 58 * Minor updates and improvements. 59 * WordPress 6.8 compatibility. 60 * Performance and code cleanup. 87 * Added role-based visibility. 88 * Improved data sanitization and security checks. 61 89 62 90 = 1.0.1 = 63 91 * Initial public release. 64 * Added role-based visibility.65 * Added nonces and sanitization for security.66 92 67 93 == Upgrade Notice == 68 94 69 = 1.0. 2=70 Minor maintenance release with compatibility updates.95 = 1.0.3 = 96 Recommended update for compatibility with WordPress 6.8 +. No breaking changes. 71 97 72 == Upgrade Notice==98 == Support == 73 99 74 = 1.0.1 = 75 First release of Menu Visibility Control. Secure and lightweight. 100 Need help or want to share feedback? 101 Visit the [support forum](https://wordpress.org/support/plugin/menu-visibility-control/) or [leave a review](https://wordpress.org/support/plugin/menu-visibility-control/reviews/#new-post). 102 If you love this plugin, consider [donating](https://knowledge.buzz/donate) to support ongoing development. 103 104 == License == 105 106 This plugin is licensed under the [GPL v2 or later](https://www.gnu.org/licenses/gpl-2.0.html). 107 You are free to use, modify, and redistribute it under the same license.
Note: See TracChangeset
for help on using the changeset viewer.