Add user settings to specific roles
On the profile page exists a global variable $profileuser. The member $profileuser->roles is an array of all roles for that user. <?php # -*- coding: utf-8 -*- // Plugin Name: personal_options add_action( ‘personal_options’, ‘print_user_roles’); function print_user_roles() { global $profileuser; print ‘<pre>$profileuser->roles=” . htmlspecialchars( var_export( $profileuser->roles, TRUE ), ENT_QUOTES, “utf-8’, FALSE ) . ‘</pre>’; } Output: … Read more