wphooks.info - editable_roles

editable_roles

(trunk - 5.0-alpha-43293)

The hook occurs in the following file:

wp-admin/includes/user.php:
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
function get_editable_roles() {
	$all_roles = wp_roles()->roles;

	/**
	 * Filters the list of editable roles.
	 *
	 * @since 2.8.0
	 *
	 * @param array[] $all_roles Array of arrays containing role information.
	 */
	$editable_roles = apply_filters( 'editable_roles', $all_roles );

	return $editable_roles;
}

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