Tagged Questions
0
votes
1answer
235 views
How to change post status in hook?
I have similar problem as described in How to trap "Publish" button to check for meta box validation?
Answer there is to hook into save_post and change post type. How can I do it?
I try to ...
0
votes
2answers
428 views
Call php to generate file on user publish post? [closed]
I have a php script that will generate a text file based on the post ID passed into it. I have it set so that it will run when a user publishes a post, I know this is functioning because if I screw up ...
1
vote
2answers
268 views
Display future posts?
Is there a way to display posts, scheduled for the future?
I want to use the published data as an event date and time, which is obviously in the future. I still would like to use these posts for a ...
0
votes
1answer
108 views
Set page to draft on plugin deactivation
Im working on a little plugin that when activated creates a theme page and then a function sets this page to published this is the code i have for published:
// function that creates the new ads page ...
3
votes
2answers
520 views
How can I make it so the Add New Post page has Visibility set to Private by default?
I'm trying to create a plugin that alters the Add New Post page so the Visibility field says "Private" by default:
Status: Draft
Visibility: **Private**
Publish immediately
[Publish]
...as opposed ...
1
vote
2answers
625 views
How to trap “Publish” button to check for meta box validation?
I'm trying to do some form validation on my custom meta box, and I remember somewhere reading about some javascript function to disable/enable the Publish button - except I can't find it.
How do I ...