Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.

LLMS_Roles::get_all_caps( string $role )

Retrieve an array of all capabilities for a role


Parameters Parameters

$role

(string) (Required) Name of the role.


Top ↑

Return Return

(array)


Top ↑

Source Source

File: includes/class.llms.roles.php

	private static function get_all_caps( $role ) {

		$caps         = array();
		$caps['core'] = self::get_core_caps( $role );
		$caps['wp']   = self::get_wp_caps( $role );
		$caps         = array_merge( $caps, self::get_post_type_caps( $role ) );

		return apply_filters( 'llms_get_all_' . $role . '_caps', $caps );

	}


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.