learndash_group_leader_has_cap_filter

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 #


Parameters #

$true

(bool) Always True if user can edit post.

$allcaps

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

$caps

(string[]) Required primitive capabilities for the requested capability.

$args

(array) 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

(WP_User) The user object.


Return #

(bool) True if Group Leader is allowed to edit post.


Source #

File: includes/ld-groups.php


Changelog #

Changelog
Version Description
3.2.3 Introduced.