wpseek.com
A WordPress-centric search engine for devs and theme authors
wp-admin/includes/post.php › WordPress File
Functions39
› WordPress Post Administration API.
Function | Short description |
---|---|
add_meta | Adds post meta data defined in the `$_POST` superglobal for a post with given ID. |
bulk_edit_posts | Processes the post data for the bulk editing of posts. |
delete_meta | Deletes post meta data by meta ID. |
edit_post | Updates an existing post with values provided in `$_POST`. |
get_available_post_statuses | Returns all the possible statuses for a post type. |
get_block_editor_server_block_settings | Prepares server-registered blocks for the block editor. |
get_default_post_to_edit | Returns default post information to use when populating the "Write Post" form. |
get_meta_keys | Returns a list of previously defined keys. |
get_post_meta_by_id | Returns post meta data by meta ID. |
get_sample_permalink | Returns a sample permalink based on the post name. |
get_sample_permalink_html | Returns the HTML of the sample permalink slug editor. |
has_meta | Returns 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 | Redirects 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 | Updates post meta data by meta ID. |
wp_autosave | Saves a post submitted with XHR. |
wp_autosave_post_revisioned_meta_fields | Autosave the revisioned meta fields. |
wp_check_post_lock | Determines whether 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 | Returns the query variables for the current attachments request. |
wp_edit_posts_query | Runs the query to fetch the posts for listing on the edit posts page. |
wp_set_post_lock | Marks 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. |
_disable_block_editor_for_navigation_post_type | Disables block editor for wp_navigation type posts so they can be managed via the UI. |
_disable_content_editor_for_navigation_post_type | This callback disables the content editor for wp_navigation type posts. |
_enable_content_editor_for_navigation_post_type | This callback enables content editor for wp_navigation type posts. |
_fix_attachment_links | Replaces 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 | Renames `$_POST` data from form names to DB post columns. |