Advertisement
Guest User

Untitled

a guest
Aug 28th, 2015
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. $recipes = $wpdb->get_results($wpdb->prepare ("SELECT ID FROM ".$wpdb->posts."
  2. WHERE post_author = %d
  3. AND post_status IN ('draft','publish')
  4. AND post_type = 'recipes' ", $current_user->ID));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement