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.
Return Return
(array)
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.13.0 | Introduced. |