wp-includes/post.php


Lines:

1 to 100 of 317
<?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() – Retrieve 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() – Retrieve 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() – Determine 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. */

 View on GitHub View on Trac

Called by

    Invoked by

      Calls

      Call hooks

      API Letters: ,,