File: wp-includes/post.php
-
functionwp_insert_post()
Inserts or update a post.
-
Filters whether the post should be considered “empty”.
-
Filters the post parent — used to check for and prevent hierarchy loops.
-
Filters slashed post data just before it is inserted into the database.
-
functionwp_untrash_post_comments()
Restores comments for a post from the Trash.
-
hookpre_post_update
Fires immediately before an existing post is updated in the database.
-
Fires before comments are restored for a post from the Trash.
-
hookedit_post
Fires once an existing post has been updated.
-
Fires after comments are restored for a post from the Trash.
-
hookpost_updated
Fires once an existing post has been updated.
-
functionwp_get_post_categories()
Retrieves the list of categories for a post.
-
Fires once a post has been saved.
-
functionwp_get_post_tags()
Retrieves the tags for a post.
-
hooksave_post
Fires once a post has been saved.
-
functionwp_post_mime_type_where()
Converts MIME types into SQL.
-
hookuntrash_post
Fires before a post is restored from the Trash.
-
functionwp_delete_post()
Trashes or deletes a post or page.
-
hookuntrashed_post
Fires after a post is restored from the Trash.
-
Fires before a post is deleted, at the start of wp_delete_post().
-
functionwp_trash_post_comments()
Moves comments for a post to the Trash.
-
hookdelete_post
Fires immediately before a post is deleted from the database.
-
Fires before comments are sent to the Trash.
-
hookdeleted_post
Fires immediately after a post is deleted from the database.
-
Fires after comments are sent to the Trash.
-
Fires after a post is deleted, at the conclusion of wp_delete_post().
-
Resets the page_on_front, show_on_front, and page_for_post settings when a linked page is deleted or trashed.
-
functionwp_trash_post()
Moves a post or page to the Trash
-
functionget_post_mime_types()
Gets default post mime types.
-
hookwp_trash_post
Fires before a post is sent to the Trash.
-
hookpost_mime_types
Filters the default list of post mime types.