File: wp-includes/post.php
-
functionwp_post_mime_type_where()
Converts MIME types into SQL.
-
functionwp_delete_post()
Trashes or deletes a post or page.
-
Fires before a post is deleted, at the start of wp_delete_post().
-
hookdelete_post
Fires immediately before a post is deleted from the database.
-
hookdeleted_post
Fires immediately after a post is deleted from the database.
-
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.
-
functionunstick_post()
Un-sticks a post.
-
function_count_posts_cache_key()
Returns the cache key for wp_count_posts() based on the passed arguments.
-
functionwp_count_posts()
Counts number of posts of a post type and if user has permissions to view.
-
hookwp_count_posts
Filters the post counts by status for the current post type.
-
functionget_post_custom_keys()
Retrieves meta field names for a post.
-
functionwp_count_attachments()
Counts number of attachments for the mime type(s).
-
functionget_post_custom_values()
Retrieves values for a custom post field.
-
Filters the attachment counts by mime type.
-
functionis_sticky()
Determines whether a post is sticky.
-
functionsanitize_post()
Sanitizes every post field.
-
functionsanitize_post_field()
Sanitizes a post field based on context.
-
hookedit_{$field}
Filters the value of a specific post field to edit.
-
Filters the value of a specific post field to edit.
-
hookpre_{$field}
Filters the value of a specific post field before saving.
-
Filters the value of a specific field before saving.
-
hook{$field}_pre
Filters the value of a specific post field before saving.
-
hook{$field}
Filters the value of a specific post field for display.
-
functionstick_post()
Makes a post sticky.
-
functionget_post_meta()
Retrieves a post meta field for the given post ID.
-
Fires after a post type is registered.
-
functionupdate_post_meta()
Updates a post meta field based on the given post ID.
-
functionget_post_type_capabilities()
Builds an object with all post type capabilities out of a post type object
-
functiondelete_post_meta_by_key()
Deletes everything from post meta matching the given meta key.