Is there a way I can call a link so when clicked it publishes the post via the ID I provide? I have get_delete_post_link( $postID )
set fine, and would like to do the same to make a draft go to published, or if you can’t publish post, make it pending. I also have this code running in my functions.php file so may be also a way to call this if a link is clicked.
1 comment
Comments are closed.
I used URL parameters and created a specific function called at init: