_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: - Introduced in WordPress: 2.6.0
- Deprecated in WordPress: —
Description
Renames `$_POST` data from form names to DB post columns.Manipulates `$_POST` directly.