_wp_translate_postdata


_wp_translate_postdata ( $update = false, $post_data = null )

Parameters:
  • (bool) update Are we updating a pre-existing post?
  • (array) post_data Array of post data. Defaults to the contents of $_POST.
Returns:
  • (array|WP_Error) Array of post data on success, WP_Error on failure.
Defined at:

Description

Rename $_POST data from form names to DB post columns.Manipulates $_POST directly.

Related Functions

wp_reset_postdata, wp_validate_site_data, wp_trash_post, wp_transition_post_status, wp_create_post_autosave

Top Google Results

User discussions

wpseek mobile