File: wp-includes/post.php
-
functionwp_untrash_post()
Restores a post from the Trash.
-
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().
-
functionis_sticky()
Determines whether a post is sticky.
-
function_count_posts_cache_key()
Returns the cache key for wp_count_posts() based on the passed arguments.
-
functionsanitize_post()
Sanitizes every post field.
-
functionwp_count_posts()
Counts number of posts of a post type and if user has permissions to view.
-
functionsanitize_post_field()
Sanitizes a post field based on context.
-
hookwp_count_posts
Filters the post counts by status for the current post type.
-
hookedit_{$field}
Filters the value of a specific post field to edit.
-
functionwp_count_attachments()
Counts number of attachments for the mime type(s).
-
Filters the value of a specific post field to edit.
-
Filters the attachment counts by mime type.
-
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.
-
functionget_post_custom_keys()
Retrieves meta field names for a post.
-
functionstick_post()
Makes a post sticky.
-
functionget_post_custom_values()
Retrieves values for a custom post field.
-
functionunstick_post()
Un-sticks a post.
-
Fires after a post type is registered.
-
functionset_post_type()
Updates the post type for the post ID.
-
functionget_post_type_capabilities()
Builds an object with all post type capabilities out of a post type object
-
functionget_posts()
Retrieves an array of the latest posts, or posts matching the given criteria.
-
function_post_type_meta_capabilities()
Stores or returns a list of post type meta caps for map_meta_cap().
-
functionadd_post_meta()
Adds a meta field to the given post.