_wp_translate_postdata


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

Parameters:
  • (bool) update Whether the post already exists.
  • (array|null) post_data Optional. The array of post data to process. Defaults to the `$_POST` superglobal.
Returns:
  • (array|WP_Error) Array of post data on success, WP_Error on failure.
Defined at:

Description

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

Related Functions

wp_reset_postdata, wp_resolve_post_date, wp_validate_site_data, wp_trash_post, wp_transition_post_status

Top Google Results

User discussions

wpseek mobile