User_Roles extends Step

User roles step in the setup wizard.

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Table of Contents

__construct()  : mixed
setup_fields()  : mixed
submit()  : mixed
{@inheritdoc}
get_selected_roles()  : void
Return an array of selected roles.

Methods

__construct()

public __construct() : mixed
Return values
mixed

setup_fields()

public setup_fields() : mixed
Return values
mixed

submit()

{@inheritdoc}

public submit(array<string|int, mixed> $values) : mixed
Parameters
$values : array<string|int, mixed>
Return values
mixed

get_selected_roles()

Return an array of selected roles.

private get_selected_roles() : void

The structure of the array is:

[ [ 'label' => 'Role name', 'value' => 'role slug', ], ]

The label is the human readable name of the role and the value is the slug. Labels are retrieved from the WP_Roles class.

Return values
void

Search results