How to Get Posts, Including Private Ones?
Currently in one of my php files, I retrieve all of the public posts like this:
$posts = get_posts(array(
'posts_per_page' = -1,
'post_type' = 'post'
));
However, this only returns public posts, and I would like to store all posts, both public and private, in the $posts
variable. How can I accomplish this?