learndash_map_metacap_essays

learndash_map_metacap_essays( array $caps,  string $cap,  int $user_id,  array $args = array() )

Maps the meta capabilities for essay post type.


Description #

Fires on map_meta_cap hook.


Parameters #

$caps

(array) (Required) An Array of the user's capabilities.

$cap

(string) (Required) Capability name.

$user_id

(int) (Required) The User ID.

$args

(array) (Optional) Adds the context to the cap. Typically the object ID.

Default value: array()


Return #

(array) An array of user's capabilities.


Source #

File: includes/quiz/ld-quiz-essays.php


Changelog #

Changelog
Version Description
2.2.0 Introduced.