remove_role( string $role )

Remove role, if it exists.


Parameters Parameters

$role

(string) (Required) Role name.


Top ↑

Source Source

File: wp-includes/capabilities.php

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


Top ↑

Changelog Changelog

Changelog
Version Description
2.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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