Browse: Home / Functions /


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 #


(boolean) (Required) value from WC.

Return #

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

Source #

File: includes/ld-groups.php

Changelog #

Version Description Introduced.