wphooks.info - editable_roles

editable_roles

(trunk - 5.0-alpha-42719)

The hook occurs in the following file:

wp-admin/includes/user.php:
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
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
 *