wphooks.info - editable_roles

editable_roles

(trunk - 5.0-alpha-42177)

The hook occurs in the following file:

wp-admin/includes/user.php:
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
function get_editable_roles() {
	$all_roles = wp_roles()->roles;

	/**
	 * Filters the list of editable roles.
	 *
	 * @since 2.8.0
	 *
	 * @param array $all_roles List of roles.
	 */
	$editable_roles = apply_filters( 'editable_roles', $all_roles );

	return $editable_roles;
}

/**
 * Retrieve user data and filter it.
 *
 * @since 2.0.5
 *