LLMS_User_Permissions::edit_others_lms_content( bool[] $allcaps, string[] $cap, array $args )

Handle capabilities checks for lms content to allow *editing* content based on course instructor


Description Description


Parameters Parameters

$allcaps

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

$cap

(Required) Required primitive capabilities for the requested capability.

$args

(Required) 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.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/class.llms.user.permissions.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
3.13.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.