Browse: Home / Functions /


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 #


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


(string) (Required) Capability name.


(int) (Required) The User ID.


(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 #

Version Description
2.2.0 Introduced.