I am new wordpress, please help me. How can I get all the details of type Administrator. I have created 2 users with Role as Administrator, like get_option( 'admin_email' );.

I want the Email address of users of type Administrator.

1 Answer 1


You can use this function to get email of all the Administrator on a WordPress website

function get_administrator_email(){
    $blogusers = get_users('role=Administrator');
    foreach ($blogusers as $user) {
        echo $user->user_email;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.