File: wp-includes/post.php
-
functionwp_untrash_post()
Restores a post from the Trash.
-
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.
-
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.
-
functionremove_post_type_support()
Removes support for a feature from a post type.
-
functionget_all_post_type_supports()
Gets all the post type features
-
functionpost_type_supports()
Checks a post type’s support for a given feature.
-
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.
-
functionget_post_type_labels()
Builds an object with all post type labels out of a post type object.
-
functiondelete_post_meta()
Deletes a post meta field for the given post ID.