Browse: Home / Functions /


learndash_group_leader_has_cap_filter( bool|array $allcaps,  string|array $cap,  array $args,  WP_User $user )

Check if the Group Leader can edit the Group or Course posts.

Description #

Override the default WordPress user capability when editing a Group. See wp-includes/class-wp-user.php for details.

Parameters #


(bool|array) (Required) Array of key/value pairs where keys represent a capability name and boolean values represent whether the user has that capability.


(string|array) (Required) Required primitive capabilities for the requested capability.


(array) (Required) Additional arguments.


(WP_User) (Required) WP_User object.

Source #

File: includes/ld-groups.php

Changelog #

Version Description
3.2.3 Introduced.