Last active
August 29, 2015 13:56
-
-
Save iladarsda/8859890 to your computer and use it in GitHub Desktop.
WordPress code snippets
This file contains 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; | |
} | |
return $arr; | |
} |
This file contains 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
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" /> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment