What is the reason for the new_to_publish hook not working?
this hook should normally be triggered on new post but it doesn’t work
this hook should normally be triggered on new post but it doesn’t work
Is there an action i can hook into when a post is set from published back to draft? I have tried both transition_post_status and publish_to_draft but they don’t seem to work when I set the post back to draft. I am doing something like:
i want to send email only new post publish in wordpress admin
I have a custom post type (called contacts).
Since this post type is not working like a post, I don’t want to show SAVE DRAFT, PREVIEW, Status, Visibility or Publish Date.
I’m trying to create a plugin that alters the Add New Post page so the Visibility field says “Private” by default:
I am using the hook publish_post to run my code where I need the post meta of the just published post. But the post meta value I am looking for is somehow not available at this point of execution. On checking the wp_postmeta table, I found that my meta key value hasn’t been created yet. Also, I want this to work for a post published for the first time. Is there any other hook that can give me access to it?
I’ve found this helpful snippet to make a delete post link on the front-end:
I would like to know is there any way/Plugin to limit the user published post (in a given time span) by his role?
Is it possible to take the blue publish button in back end of the wordpress and place it in the frontend near the post in my index.php. I need a way to publish the pending article without going to dashboard and only admin can see the publish button?
Is there any hook which is fired only when the post is “published” for the first time.