Parsed: 123002

<?php

/**
 * Core Post API
 *
 * @package WordPress
 * @subpackage Post
 */

//
// Post Type registration.
//

/* function create_initial_post_types() – Creates the initial post types when ‘init’ action is fired. */

/* function get_attached_file() – Retrieves attached file path based on attachment ID. */

/* function update_attached_file() – Update attachment file path based on attachment ID. */

/* function _wp_relative_upload_path() – Return relative path to an uploaded file. */

/* function get_children() – Retrieve all children of the post parent ID. */

/* function get_extended() – Get extended entry info (<!–more–>). */

/* function get_post() – Retrieves post data given a post ID or post object. */

/* function get_post_ancestors() – Retrieve ancestors of a post. */

/* function get_post_field() – Retrieve data from a post field based on Post ID. */

/* function get_post_mime_type() – Retrieve the mime type of an attachment based on the ID. */

/* function get_post_status() – Retrieves the post status based on the post ID. */

/* function get_post_statuses() – Retrieve all of the WordPress supported post statuses. */

/* function get_page_statuses() – Retrieve all of the WordPress support page statuses. */

/* function _wp_privacy_statuses() – Return statuses for privacy requests. */

/* function register_post_status() – Register a post status. Do not use before init. */

/* function get_post_status_object() – Retrieve a post status object by name. */

/* function get_post_stati() – Get a list of post statuses. */

/* function is_post_type_hierarchical() – Whether the post type is hierarchical. */

/* function post_type_exists() – Determines whether a post type is registered. */

/* function get_post_type() – Retrieves the post type of the current post or of a given post. */

/* function get_post_type_object() – Retrieves a post type object by name. */

/* function get_post_types() – Get a list of all registered post type objects. */

/* function register_post_type() – Registers a post type. */

/* function unregister_post_type() – Unregisters a post type. */

/* function get_post_type_capabilities() – Build an object with all post type capabilities out of a post type object */

/* function _post_type_meta_capabilities() – Store or return a list of post type meta caps for map_meta_cap(). */

/* function get_post_type_labels() – Builds an object with all post type labels out of a post type object. */

/* function _get_custom_object_labels() – Build an object with custom-something object (post type, taxonomy) labels
out of a custom-something object */

/* function _add_post_type_submenus() – Add submenus for post types. */

/* function add_post_type_support() – Registers support of certain features for a post type. */

/* function remove_post_type_support() – Remove support for a feature from a post type. */

/* function get_all_post_type_supports() – Get all the post type features */

/* function post_type_supports() – Check a post type’s support for a given feature. */

/* function get_post_types_by_support() – Retrieves a list of post type names that support a specific feature. */

/* function set_post_type() – Update the post type for the post ID. */

/* function is_post_type_viewable() – Determines whether a post type is considered "viewable". */

/* function is_post_status_viewable() – Determines whether a post status is considered "viewable". */

/* function is_post_publicly_viewable() – Determine whether a post is publicly viewable. */

/* function get_posts() – Retrieves an array of the latest posts, or posts matching the given criteria. */

//
// Post meta functions.
//

/* function add_post_meta() – Adds a meta field to the given post. */

/* function delete_post_meta() – Deletes a post meta field for the given post ID. */

/* function get_post_meta() – Retrieves a post meta field for the given post ID. */

/* function update_post_meta() – Updates a post meta field based on the given post ID. */

/* function delete_post_meta_by_key() – Deletes everything from post meta matching the given meta key. */

/* function register_post_meta() – Registers a meta key for posts. */

/* function unregister_post_meta() – Unregisters a meta key for posts. */

/* function get_post_custom() – Retrieves post meta fields, based on post ID. */

/* function get_post_custom_keys() – Retrieve meta field names for a post. */

/* function get_post_custom_values() – Retrieve values for a custom post field. */

/* function is_sticky() – Determines whether a post is sticky. */

/* function sanitize_post() – Sanitize every post field. */

/* function sanitize_post_field() – Sanitizes a post field based on context. */

/* function stick_post() – Make a post sticky. */

/* function unstick_post() – Un-stick a post. */

/* function _count_posts_cache_key() – Return the cache key for wp_count_posts() based on the passed arguments. */

/* function wp_count_posts() – Counts number of posts of a post type and if user has permissions to view. */

/* function wp_count_attachments() – Counts number of attachments for the mime type(s). */

/* function get_post_mime_types() – Get default post mime types. */

/* function wp_match_mime_types() – Check a MIME-Type against a list. */

/* function wp_post_mime_type_where() – Convert MIME types into SQL. */

/* function wp_delete_post() – Trashes or deletes a post or page. */

/* function _reset_front_page_settings_for_post() – Reset the page_on_front, show_on_front, and page_for_post settings when
a linked page is deleted or trashed. */

/* function wp_trash_post() – Move a post or page to the Trash */

/* function wp_untrash_post() – Restores a post from the Trash. */

/* function wp_trash_post_comments() – Moves comments for a post to the Trash. */

/* function wp_untrash_post_comments() – Restore comments for a post from the Trash. */

/* function wp_get_post_categories() – Retrieve the list of categories for a post. */

/* function wp_get_post_tags() – Retrieve the tags for a post. */

/* function wp_get_post_terms() – Retrieves the terms for a post. */

/* function wp_get_recent_posts() – Retrieve a number of recent posts. */

/* function wp_insert_post() – Inserts or update a post. */

/* function wp_update_post() – Update a post with new post data. */

/* function wp_publish_post() – Publish a post by transitioning the post status. */

/* function check_and_publish_future_post() – Publishes future post and make sure post ID has future post status. */

/* function wp_resolve_post_date() – Uses wp_checkdate to return a valid Gregorian-calendar value for post_date. */

/* function wp_unique_post_slug() – Computes a unique slug for the post, when given the desired slug and some post details. */

/* function _truncate_post_slug() – Truncate a post slug. */

/* function wp_add_post_tags() – Add tags to a post. */

/* function wp_set_post_tags() – Set the tags for a post. */

/* function wp_set_post_terms() – Sets the terms for a post. */

/* function wp_set_post_categories() – Set categories for a post. */

/* function wp_transition_post_status() – Fires actions related to the transitioning of a post’s status. */

/* function wp_after_insert_post() – Fires actions after a post, its terms and meta data has been saved. */

//
// Comment, trackback, and pingback functions.
//

/* function add_ping() – Adds a URL to those already pinged. */

/* function get_enclosed() – Retrieve enclosures already enclosed for a post. */

/* function get_pung() – Retrieves URLs already pinged for a post. */

/* function get_to_ping() – Retrieves URLs that need to be pinged. */

/* function trackback_url_list() – Do trackbacks for a list of URLs. */

//
// Page functions.
//

/* function get_all_page_ids() – Get a list of page IDs. */

/* function get_page() – Retrieves page data given a page ID or page object. */

/* function get_page_by_path() – Retrieves a page given its path. */

/* function get_page_by_title() – Retrieves a page given its title. */

/* function get_page_children() – Identify descendants of a given page ID in a list of page objects. */

/* function get_page_hierarchy() – Order the pages with children under parents in a flat list. */

/* function _page_traverse_name() – Traverse and return all the nested children post names of a root page. */

/* function get_page_uri() – Build the URI path for a page. */

/* function get_pages() – Retrieve an array of pages (or hierarchical post type items). */

//
// Attachment functions.
//

/* function is_local_attachment() – Determines whether an attachment URI is local and really an attachment. */

/* function wp_insert_attachment() – Insert an attachment. */

/* function wp_delete_attachment() – Trashes or deletes an attachment. */

/* function wp_delete_attachment_files() – Deletes all files that belong to the given attachment. */

/* function wp_get_attachment_metadata() – Retrieves attachment metadata for attachment ID. */

/* function wp_update_attachment_metadata() – Updates metadata for an attachment. */

/* function wp_get_attachment_url() – Retrieve the URL for an attachment. */

/* function wp_get_attachment_caption() – Retrieves the caption for an attachment. */

/* function wp_get_attachment_thumb_url() – Retrieves URL for an attachment thumbnail. */

/* function wp_attachment_is() – Verifies an attachment is of a given type. */

/* function wp_attachment_is_image() – Determines whether an attachment is an image. */

/* function wp_mime_type_icon() – Retrieve the icon for a MIME type or attachment. */

/* function wp_check_for_changed_slugs() – Check for changed slugs for published post objects and save the old slug. */

/* function wp_check_for_changed_dates() – Check for changed dates for published post objects and save the old date. */

/* function get_private_posts_cap_sql() – Retrieve the private post SQL based on capability. */

/* function get_posts_by_author_sql() – Retrieves the post SQL based on capability, author, and type. */

/* function get_lastpostdate() – Retrieves the most recent time that a post on the site was published. */

/* function get_lastpostmodified() – Get the most recent time that a post on the site was modified. */

/* function _get_last_post_time() – Gets the timestamp of the last time any post was modified or published. */

/* function update_post_cache() – Updates posts in cache. */

/* function clean_post_cache() – Will clean the post in the cache. */

/* function update_post_caches() – Call major cache updating functions for list of Post objects. */

/* function update_post_author_caches() – Updates post author user caches for a list of post objects. */

/* function update_post_parent_caches() – Updates parent post caches for a list of post objects. */

/* function update_postmeta_cache() – Updates metadata cache for list of post IDs. */

/* function clean_attachment_cache() – Will clean the attachment in the cache. */

//
// Hooks.
//

/* function _transition_post_status() – Hook for managing future post transitions to published. */

/* function _future_post_hook() – Hook used to schedule publication for a post marked for the future. */

/* function _publish_post_hook() – Hook to schedule pings and enclosures when a post is published. */

/* function wp_get_post_parent_id() – Returns the ID of the post’s parent. */

/* function wp_check_post_hierarchy_for_loops() – Check the given subset of the post hierarchy for hierarchy loops. */

/* function set_post_thumbnail() – Sets the post thumbnail (featured image) for the given post. */

/* function delete_post_thumbnail() – Removes the thumbnail (featured image) from the given post. */

/* function wp_delete_auto_drafts() – Delete auto-drafts for new posts that are > 7 days old. */

/* function wp_queue_posts_for_term_meta_lazyload() – Queues posts for lazy-loading of term meta. */

/* function _update_term_count_on_transition_post_status() – Update the custom taxonomies’ term counts when a post’s status is changed. */

/* function _prime_post_caches() – Adds any posts from the given IDs to the cache that do not already exist in cache */

/* function wp_add_trashed_suffix_to_post_name_for_trashed_posts() – Adds a suffix if any trashed posts have a given slug. */

/* function wp_add_trashed_suffix_to_post_name_for_post() – Adds a trashed suffix for a given post. */

/* function wp_cache_set_posts_last_changed() – Sets the last changed time for the ‘posts’ cache group. */

/* function get_available_post_mime_types() – Get all available post MIME types for a given post type. */

/* function wp_get_original_image_path() – Retrieves the path to an uploaded image file. */

/* function wp_get_original_image_url() – Retrieve the URL to an original attachment image. */

/* function wp_untrash_post_set_previous_status() – Filter callback which sets the status of an untrashed post to its previous status. */

/* function use_block_editor_for_post() – Returns whether the post can be edited in the block editor. */

/* function use_block_editor_for_post_type() – Return whether a post type is compatible with the block editor. */