Skip to content
Snippets Groups Projects
Commit 9f767296 authored by Prasath Nadarajah's avatar Prasath Nadarajah
Browse files

getting user roles

parent 434ffbc0
No related branches found
No related tags found
No related merge requests found
...@@ -260,7 +260,16 @@ class Push_Syndication_Server { ...@@ -260,7 +260,16 @@ class Push_Syndication_Server {
} }
public function display_user_roles_selection() { public function display_user_roles_selection() {
$user_roles = $this->get_user_roles();
}
public function get_user_roles() {
global $wp_roles;
if ( ! isset( $wp_roles ) )
$wp_roles = new WP_Roles();
return $wp_roles->get_names();
} }
public function display_delete_pushed_posts_description() { public function display_delete_pushed_posts_description() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment