This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: ThemeName | |
Author: John Doe @ CompanyCo LTD | |
Author E-mail: [email protected] | |
Author URI: http://john.company.com | |
Version: 1.0 | |
Last Update: 12/12/2012 | |
*/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function get_emails_by_role($role) { | |
$arr = array(); | |
$args = array("role" => $role); | |
$users = get_users($args ); | |
foreach ($users as $key => $value) { | |
$arr[] = $value->data->user_email; | |
} |
NewerOlder