Свойство | 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 |
Méthode | 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 |
Résultat | WPDKUserRole |
public string $description | ||
Résultat | string |