remove_role( string $role )

Removes a role, if it exists.


Parameters

$role

(string) (Required) Role name.


Top ↑

Source

File: wp-includes/capabilities.php

function remove_role( $role ) {
	wp_roles()->remove_role( $role );
}


Top ↑

Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.