Remove Batch seats for Group administrator

Home Forums WPLMS AddOns WPLMS Batches Remove Batch seats for Group administrator

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #76395
    smierdink
    Spectator
    Dear WPLMS support, We don't want the group administrator to be able to set the number of Seats, Is it possible to set this in the back end and remove it for the 'Group administrator'?   Best regards   Sander
    #76565
    H.K. Latiyan
    Participant
    This is not possible. However as an alternative we can hide the setting for all users and can make it visible to only site administrators. Let me know if this makes sense for you.
    #76624
    smierdink
    Spectator
    That makes sense, can you tell me how to do that?   Thanks!
    #76749
    H.K. Latiyan
    Participant
    Please add the bellow code in your wplms-customizer.php file present in your wplms customizer plugin OR add the code in functions.php file of your child theme (if using child theme): add_action('wp_head','custom_hide_batch_seats_for_moderators'); function custom_hide_batch_seats_for_moderators(){   if(is_user_logged_in() && !current_user_can('manage_options')){     ?>     <style>.batch .enabled_course_batch .checkbox:nth-child(4) {display:none;}</style>     <?php   } }  
Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove Batch seats for Group administrator’ is closed to new replies.