LLMS_REST_Capabilities::add( array $caps )

Add REST-specific capabilities to LifterLMS core cap lists.


Description Description

See also See also


Top ↑

Parameters Parameters

$caps

(array) (Required) Assoc. array of existing caps, array key is the capability and the value is a bool (true = has cap).


Top ↑

Return Return

(array)


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/class-llms-rest-capabilities.php

	public static function add( $caps ) {
		$caps['manage_lifterlms_api_keys'] = true;
		$caps['manage_lifterlms_webhooks'] = true;
		return $caps;
	}

Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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