Loading

Loading

Get Users Roles List

a shortcut function to get the registered user’s rules, if you’re running a membership system in your theme.

<?php
//===> Get List of the Registered Rules <===//
$users_roles = get_option("pds_users");

//===> Output Example <===//
array {
  ["administrator"] => array {
    ["name"]=>string
    ["capabilities"]=>array
  }
}

All rights reserved © 2016 – 2024 Phenix Tools (Abdullah.Ramadan)

On This Page