Dashboard Sidebar for Custom Role

This tip is to make custom role in wplms and then register a custom sidebar for that user role only.

Please follow these steps:

  1. Paste this code in the wplms-customizer.php file present in the wplms customizer plugin OR in the function.php file of your child theme.

This will register a new user role known as parent with the capability to read; and a new sidebar for that user role.

You can change the user role name and its capability according to your requirements.

2) Now paste the following code below the above code.

Done.

Was this article helpful?

Related Articles

Leave A Comment?