wp-admin/includes/post.php
Lines:
1 to 96 of 96
<?php /** * WordPress Post Administration API. * * @package WordPress * @subpackage Administration */ /* function _wp_translate_postdata() – Renames `$_POST` data from form names to DB post columns. */ /* function _wp_get_allowed_postdata() – Returns only allowed post data fields */ /* function edit_post() – Updates an existing post with values provided in `$_POST`. */ /* function bulk_edit_posts() – Processes the post data for the bulk editing of posts. */ /* function get_default_post_to_edit() – Returns default post information to use when populating the "Write Post" form. */ /* function post_exists() – Determines if a post exists based on title, content, date and type. */ /* function wp_write_post() – Creates a new post from the "Write Post" form using `$_POST` information. */ /* function write_post() – Calls wp_write_post() and handles the errors. */ // // Post Meta. // /* function add_meta() – Adds post meta data defined in the `$_POST` superglobal for a post with given ID. */ /* function delete_meta() – Delete post meta data by meta ID. */ /* function get_meta_keys() – Returns a list of previously defined keys. */ /* function get_post_meta_by_id() – Get post meta data by meta ID. */ /* function has_meta() – Get meta data for the given post ID. */ /* function update_meta() – Update post meta data by meta ID. */ // // Private. // /* function _fix_attachment_links() – Replaces hrefs of attachment anchors with up-to-date permalinks. */ /* function get_available_post_statuses() – Get all the possible statuses for a post_type */ /* function wp_edit_posts_query() – Run the wp query to fetch the posts for listing on the edit posts page */ /* function wp_edit_attachments_query_vars() – Returns the query variables for the current attachments request. */ /* function wp_edit_attachments_query() – Executes a query for attachments. An array of WP_Query arguments can be passed in, which will override the arguments set by this function. */ /* function postbox_classes() – Returns the list of classes to be used by a meta box. */ /* function get_sample_permalink() – Returns a sample permalink based on the post name. */ /* function get_sample_permalink_html() – Returns the HTML of the sample permalink slug editor. */ /* function _wp_post_thumbnail_html() – Returns HTML for the post thumbnail meta box. */ /* function wp_check_post_lock() – Determines whether the post is currently being edited by another user. */ /* function wp_set_post_lock() – Marks the post as currently being edited by the current user. */ /* function _admin_notice_post_locked() – Outputs the HTML for the notice to say that someone else is editing or has taken over editing of this post. */ /* function wp_create_post_autosave() – Creates autosave data for the specified post from `$_POST` data. */ /* function wp_autosave_post_revisioned_meta_fields() – Autosave the revisioned meta fields. */ /* function post_preview() – Saves a draft or manually autosaves for the purpose of showing a post preview. */ /* function wp_autosave() – Saves a post submitted with XHR. */ /* function redirect_post() – Redirect to previous page. */ /* function taxonomy_meta_box_sanitize_cb_checkboxes() – Sanitizes POST values from a checkbox taxonomy metabox. */ /* function taxonomy_meta_box_sanitize_cb_input() – Sanitizes POST values from an input taxonomy metabox. */ /* function get_block_editor_server_block_settings() – Prepares server-registered blocks for the block editor. */ /* function the_block_editor_meta_boxes() – Renders the meta boxes forms. */ /* function the_block_editor_meta_box_post_form_hidden_fields() – Renders the hidden form required for the meta boxes form. */ /* function _disable_block_editor_for_navigation_post_type() – Disables block editor for wp_navigation type posts so they can be managed via the UI. */ /* function _disable_content_editor_for_navigation_post_type() – This callback disables the content editor for wp_navigation type posts. */ /* function _enable_content_editor_for_navigation_post_type() – This callback enables content editor for wp_navigation type posts. */