apply_filters( 'learndash_group_leader_has_cap_filter', bool $true , bool[] $allcaps , string[] $caps , array $args , WP_User $user )
Filter override for Group Leader edit cap.
Description Description
Parameters Parameters
- $true
-
Always True if user can edit post.
- $allcaps
-
Array of key/value pairs where keys represent a capability name and boolean values represent whether the user has that capability.
- $caps
-
Required primitive capabilities for the requested capability.
- $args
-
Arguments that accompany the requested capability check.
- (string) Requested capability.
- '1'
(int) Concerned user ID. - '...$2'
(mixed) Optional second and further parameters, typically object ID.
- $user
-
The user object.
Return Return
(bool) True if Group Leader is allowed to edit post.
Source Source
File: includes/ld-groups.php
Changelog Changelog
Version | Description |
---|---|
3.2.3 | Introduced. |