Property | Type | Description | |
---|---|---|---|
$description | string | Extended description for this role. This extra information is stored in the special array into the wp_options default database table. | |
$displayName | string | The display name of role | |
$owner | Who create this role |
Method | Description | |
---|---|---|
__construct ( string $role, string $display_name = '', array $capabilities = [], string $description = '', string $owner = '' ) : WPDKUserRole | Create an instance of WPDKUserRoles class. | |
update ( ) : boolean | Update the extra role information |
public __construct ( string $role, string $display_name = '', array $capabilities = [], string $description = '', string $owner = '' ) : WPDKUserRole | ||
$role | string | Role key |
$display_name | string | Optional. Role display name. This param is optional because you coul read an exists role |
$capabilities | array | Optional. List of any WPDKCapability or name of capability |
$description | string | Optional. The extended description of this role |
$owner | string | Optional. Owner of this role |
return | WPDKUserRole |
public string $description | ||
return | string |