get_posts_by_author_sql Wordpress function


Description:

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


Syntax:


Arguments:

(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:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/get_posts_by_author_sql


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