Answers for "how to get user roles in javascript 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 "how to get user roles in javascript wordpress"

Browse Popular Code Answers by Language