The members members get uneditable role names function.
Published Date - July 31, 2023
Returns an array of uneditable role names.
members_get_uneditable_role_names();
The following example is for adding a hook callback.
if ( !function_exists( 'members_get_uneditable_role_names' ) ) {
require_once ABSPATH . PLUGINDIR . 'membersmembers/inc/functions-deprecated.php';
}
// NOTICE! Understand what this does before running.
$result = members_get_uneditable_role_names();
The function is defined in the following location(s).
members/inc/functions-deprecated.php
function members_get_uneditable_role_names() {
_deprecated_function( __FUNCTION__, '2.0.0', '' );
$uneditable = array();
foreach ( members_role_registry()->uneditable as $role )
$uneditable[ $role->slug ] = $role->name;
return $uneditable;
}