Skip to content

Instantly share code, notes, and snippets.

@remcotolsma
Created September 6, 2013 08:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save remcotolsma/6460871 to your computer and use it in GitHub Desktop.
Save remcotolsma/6460871 to your computer and use it in GitHub Desktop.
Example of WordPress action for WordPress User Query filter on author of specific post type. https://gist.github.com/remcotolsma/6460846
<?php
$user_query = new WP_User_Query( array(
'orderby' => 'ID',
'prefix_post_type' => 'blog'
) );
$users = $user_query->get_results();
foreach ( $users as $user ) {
echo $user->display_name, '<br />';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment