Answers for "get user role from wp_capabilities wordpress"

PHP
0

wordpress get wp roles

function get_role_names() {

global $wp_roles;

if ( ! isset( $wp_roles ) )
    $wp_roles = new WP_Roles();

return $wp_roles->get_names();
}
Posted by: Guest on April-01-2021

Code answers related to "get user role from wp_capabilities wordpress"

Browse Popular Code Answers by Language