get_posts_by_author_sql Wordpress function


Retrieve the post SQL based on capability, author, and type.



(string) $post_type Post type.
(bool) $full Optional. Returns a full WHERE statement instead of just an 'andalso' term.
(int) $post_author Optional. Query posts having a single author ID.
(bool) $public_only Optional. Only return public posts. Skips cap checks for $current_user. Default is false.

Return Type:

(string) SQL WHERE code that can be added to a query.

Define At:


Wordpress Reference URL:

0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×