Anyone got an idea how I can change a post to “Private” through a custom meta box?
Yes I know I could just click on “Visibility” and change it in the Publish Box, but I am looking to see if it is possible to set the visibility automatically in my own meta box (along with other custom details).
in the myplugin_save_postdata() function you could write your own logic to set the public/private status. You would need to look in core and copy all that functionality. Don’t forget all the password related bits.
Viewing 1 replies (of 1 total)
The topic ‘Change Post Visibility through Meta Box’ is closed to new replies.