_wp_get_allowed_postdata
_wp_get_allowed_postdata ( $post_data = null )
Parameters:- (array|WP_Error|null) post_data The array of post data to process, or an error object. Defaults to the `$_POST` superglobal.
Returns:- (array|WP_Error) Array of post data on success, WP_Error on failure.
Defined at: - Introduced in WordPress: 5.0.1
- Deprecated in WordPress: —
Description
Returns only allowed post data fields.