learndash_check_group_leader_access( boolean $prevent_access )
Allows group leader access to the admin dashboard.
Description 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 Parameters
- $prevent_access
-
(Required) value from WC.
Return Return
(boolean) The adjusted value based on user's access/role.
Source Source
File: includes/ld-groups.php
Changelog Changelog
Version | Description |
---|---|
2.2.0.1 | Introduced. |