Browse: Home / Hooks /

learndash_group_leader_has_cap_filter

apply_filters( 'learndash_group_leader_has_cap_filter',  bool $true,  bool[] $allcaps,  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.

$args

(array)

  • 'index_0'
    (string) Requested capability.
  • 'index_1'
    (int) Concerned user ID.
  • '...$other'
    (mixed) Optional second and further parameters, typically object ID. } Arguments that accompany the requested capability check

$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.