_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_translate_php_url_constant_to_key

Top Google Results

User discussions

wpseek mobile