WooCommerce Role Based Account Menu

99,99 €

<p>WooCommerce Role Based Account Menu is plugin that extends the WooCommerce “My Account” menu with role-based, customizable menu items, dynamically added based on user roles and linked to specific pages.</p>




Category:

The WooCommerce Role Based Account Menu plugin enhances the WooCommerce “My Account” page by allowing administrators to create role-specific menu items. It integrates with WordPress navigation menus, enabling the assignment of custom menus to different user roles (e.g., customer, subscriber, administrator). Each menu item links to a specific page, and the plugin dynamically registers these as WooCommerce endpoints to display the corresponding page content. Administrators can configure which roles have custom menus via a settings page under the “Users” menu, selecting roles and associating them with navigation menus created in “Appearance > Menus.” The plugin is lightweight, secure, and seamlessly integrates with WooCommerce, providing a tailored account navigation experience for users based on their roles.

Features of WooCommerce Role Based Account Menu

  • Role-Based Menus: Assign custom navigation menus to specific user roles for the WooCommerce “My Account” page.
  • Dynamic Endpoints: Automatically registers menu item URLs as WooCommerce endpoints to display linked page content.
  • Admin Configuration: Select user roles for custom menus via an intuitive settings page under “Users > User Menus.”
  • Menu Integration: Uses WordPress navigation menus, allowing easy creation and management in “Appearance > Menus.”
  • Content Rendering: Displays the content of linked pages for custom endpoints, ensuring a seamless user experience.
  • Secure & Efficient: Includes nonce verification and sanitization for secure data handling and minimal performance impact.
  • Localization Support: Supports translations via the WordPress-role-menu text domain for multilingual compatibility.
  • Error Handling: Displays user-friendly messages when no menu or content is found for a user’s role or endpoint.

Installation

  1. Upload the plugin folder to the /wp-content/plugins/ directory.
  2. Activate the WooCommerce Role Based Account Menu plugin through the WordPress admin panel.
  3. Go to Users > User Menus to select user roles that will have custom menus.
  4. In Appearance > Menus, create navigation menus for each role (e.g., “customer-menu”, “administrator-menu”) and assign them to the corresponding role-based menu locations.
  5. Add menu items linking to specific pages, which will appear in the “My Account” menu for users with the specified roles.

Usage of WooCommerce Role Based Account Menu

  • Configure User Roles: Navigate to Users > User Menus in the WordPress admin panel, select the roles (e.g., customer, subscriber) that should have custom menus, and save.
  • Create Menus: In Appearance > Menus, create a menu for each role (e.g., named “customer-menu” for the customer role) and add links to pages you want to include.
  • Assign Menus: Assign each menu to the corresponding role-based menu location (e.g., “Customer Menu”) in the menu settings.
  • View in My Account: Users with the specified roles will see their custom menu items in the WooCommerce “My Account” navigation, with each item linking to the assigned page content.
  • Customize Styling: Style the menu items using WooCommerce’s default CSS classes or custom styles in your theme.

Requirements

  • WordPress 5.0 or higher
  • PHP 7.0 or higher
  • WooCommerce 3.0 or higher
  • Navigation menus created in WordPress with links to pages
  • User roles defined in WordPress (e.g., via WooCommerce or other plugins)