_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:
  • (object|bool) WP_Error on failure, true on success.
Defined at:

Description

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

Manipulates $_POST directly.

Related Functions

wp_reset_postdata, wp_trash_post, wp_transition_post_status, _wp_translate_php_url_constant_to_key, wp_create_post_autosave

Top Google Results

User discussions

wpseek mobile