There’s the following (/wp-includes/post.php – line 2985):
do_action( 'transition_post_status', $new_status, $old_status, $post )
Related Posts:
- How to change post status from publish to draft using hook in wordpress?
- Adding bootstrap classes to video shortcodes
- fire action when post is being edited as well as saved?
- save_post not working
- Hooking into the post editing screen for an existing page only
- Order posts alphabetically: how to set order=asc in mysql query?
- Trying to alter the post_content through the_post
- Call Web Services on post first publish
- How to dynamically parse and transform post/page content before displaying it?
- Change all author links in Blog roll
- disable Tab post on nav-menus page (Admin)
- What does WordPress do if I save a post without content/title? [duplicate]
- Every second post different class in blog view
- Format latest/newest post differently
- is_page Funtion for Posts ?
- Post type no single page
- preg_replace not removed “class”
- why the same code got different results when using query_posts in functions.php and index.php
- Get post meta retrieving wrong value
- Adding a user’s ID behind the tag ref link address
- The_excerpt() doesn’t parse – how to change that?
- Divs appearing everywhere in post content
- How to only publish posts with image in it
- Modify posts listing at back end
- Isn’t the way posts are displayed very unefficient?
- Add custom text automatically on each post
- How to check in functions.php if there is data in a WP_Query?
- Hook for changing excerpt content when excerpt not set
- Is it possible to add a shortcode below post title?
- restrict incrementation of post vies count when refreshing the page
- Defined function isn’t showed on page
- WordPress 302 Redirect to Random Product/Post/Page
- Automatically set post_parent value
- Getting Whitescreen when publishing a post [closed]
- Using system date format
- Get post by tag
- Add code to a specific post’s content
- Related Posts function not working
- the_content() Not Grabbing All Content
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- Is it advisable to use $post->comment_count instead of get_comments_number( $post_id )
- Related Posts: Changing Function For Posts Per Page
- Query function not executed between element [closed]
- Optimize CPT-function with a loop
- saving/reading custom field value does not work – no value gets POSTed
- Same post appears in related Posts?
- Internal linking to posts permalink fail because of spaces and stripe at postname
- Have h2 tag not show up if there are no blog posts
- WordPress as CMS: How to manage/handle images assigned to a post as full-sized background images in a slideshow?
- Making a wordpress page print friendly
- Help on conditional statement to accompany wp_insert_post function please?
- How to implement a WordPress comments function?
- How to add content above footer in posts from specific category
- Set Default Post as Parent Child (Nested) Relation
- I need to create “View Profile” and “Edit Profile” links by incorporating the Post Title/ID, but can’t seem to manage it
- how to show comments only author which send own posts in wordpress
- get category in list of posts // shortcode for custom related posts
- shortcode // get posts by ids
- Posting to WP via URL
- Is there a way to know when a page has been updated and do some action only once?
- How to put the author of the post in the comments?
- Restricting displayed posts to posts from only select authors
- Check if almost 10 year old – working code is up to date
- Alt text attributes not showing over portfolio images
- How can I change the date format of the revision list?
- Find most used words in post titles
- WordPress Sticky Post Count “Fix” Breaking Pagecount by 72 pages!
- $post->post_content empty while all other properties are correct
- Function is printing twice – any suggestions?
- Hook when post is set from published to draft?
- How to add a custom class attribute into code wrapper? [duplicate]
- Is update_post_meta used when save_post action hook is invoked?
- Get Category in save_post Hook
- Remove pagination if search returns empty
- Remove HTML tags from all posts
- Set a post expiration and delete a post when expirate
- Count singular post views automatically
- How to prevent post update using transition_post_status
- I want to change the WordPress comments file
- Replace Tag Keyword With Link Within Post Content
- Excluding tag Link from html tags in Post content
- Save All Post Permalink From A Specific Category into a .txt file
- Getting page / post URL on publish and / or update
- Changing a users posts to drafts upon role change
- AJAX load more posts not using correct category and repeating the same few posts
- How to Display Most View Post in the template file?
- Get post id outside loop : Notice: Trying to get property of non-object
- Grab meta data before post is saved
- Show post excerpt
- How do I apply a wordpress function to something with no ID inside an archive page?
- Show all posts from the tags without having to set all of them
- Show author bio box
- How to correctly escape data
- Display author bio box
- Check if user has avatar
- Trim excerpt to first paragraph
- im trying make a function to auto correct posts when i open the posts in the backoffice
- Can’t get post_updated hook to work
- How to get the postID inside ‘content_save_pre’? Other hook?
- wp query custom orderby not custom field