I have a Wordpress installation with thousands of pages that are all public which I need to make private. I can't use a plugin to help me; I need to do it using Wordpress' built in Public/Protected/Private paradigm.
Ideally, I would run a search and replace on an SQL export of the database. Alternatively, I would be willing to write a PHP script to handle it.
It is not an option to make all pages private manually - I am looking for a programmatic method for dealing with this problem.
Can anyone help?