Show Admin Tab For Another User Role

This code is used to show admin tab on single course page for shop manager users. You can change the user role in the below code to show it for another user role.

Paste this code in wp-admin > Plugins > Editor > Select WPLMS Customizer Plugin > wplms-customizer.php



return false;

$user = wp_get_current_user();

if(!empty($user) && !empty($user->roles) && in_array('shop_manager', $user->roles)){


$authors = array($user->ID);


$authors[] = $user->ID;



return $authors;


Was this article helpful?

Related Articles

Leave A Comment?