wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-admin/includes/post.php › WordPress File
Functions38
› WordPress Post Administration API.
Function | Short description |
---|---|
add_meta | Add post meta data defined in $_POST superglobal for post with given ID. |
bulk_edit_posts | Process the post data for the bulk editing of posts. |
delete_meta | Delete post meta data by meta ID. |
edit_post | Update an existing post with values provided in $_POST. |
get_available_post_statuses | Get all the possible statuses for a post_type |
get_block_categories | Returns all the block categories that will be shown in the block editor. |
get_block_editor_server_block_settings | Prepares server-registered blocks for the block editor. |
get_default_post_to_edit | Default post information to use when populating the "Write Post" form. |
get_meta_keys | Get a list of previously defined keys. |
get_post_meta_by_id | Get post meta data by meta ID. |
get_sample_permalink | Get a sample permalink based off of the post name. |
get_sample_permalink_html | Returns the HTML of the sample permalink slug editor. |
has_meta | Get meta data for the given post ID. |
postbox_classes | Returns the list of classes to be used by a meta box. |
post_exists | Determines if a post exists based on title, content, date and type. |
post_preview | Saves a draft or manually autosaves for the purpose of showing a post preview. |
redirect_post | Redirect to previous page. |
taxonomy_meta_box_sanitize_cb_checkboxes | Sanitizes POST values from a checkbox taxonomy metabox. |
taxonomy_meta_box_sanitize_cb_input | Sanitizes POST values from an input taxonomy metabox. |
the_block_editor_meta_boxes | Renders the meta boxes forms. |
the_block_editor_meta_box_post_form_hidden_fields | Renders the hidden form required for the meta boxes form. |
update_meta | Update post meta data by meta ID. |
use_block_editor_for_post | Return whether the post can be edited in the block editor. |
use_block_editor_for_post_type | Return whether a post type is compatible with the block editor. |
wp_autosave | Save a post submitted with XHR |
wp_check_post_lock | Check to see if the post is currently being edited by another user. |
wp_create_post_autosave | Creates autosave data for the specified post from $_POST data. |
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. |
wp_edit_attachments_query_vars | Get the query variables for the current attachments request. |
wp_edit_posts_query | Run the wp query to fetch the posts for listing on the edit posts page |
wp_set_post_lock | Mark the post as currently being edited by the current user |
wp_write_post | Creates a new post from the "Write Post" form using $_POST information. |
write_post | Calls wp_write_post() and handles the errors. |
_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. |
_fix_attachment_links | Replace hrefs of attachment anchors with up-to-date permalinks. |
_wp_get_allowed_postdata | Returns only allowed post data fields |
_wp_post_thumbnail_html | Returns HTML for the post thumbnail meta box. |
_wp_translate_postdata | Rename $_POST data from form names to DB post columns. |