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.


Top ↑

Return Return

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


Top ↑

Source Source

File: includes/ld-groups.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
2.2.0.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.