learndash_check_group_leader_access

learndash_check_group_leader_access( boolean $prevent_access )

Allows group leader access to the admin dashboard.


Description #

WooCommerce prevents access to the dashboard for all non-admin user roles. This filter allows us to check if the current user is group_leader and override WC access. Fires on woocommerce_prevent_admin_access hook.


Parameters #

$prevent_access

(boolean) (Required) value from WC.


Return #

(boolean) The adjusted value based on user's access/role.


Source #

File: includes/ld-groups.php


Changelog #

Changelog
Version Description
2.2.0.1 Introduced.