_wp_get_allowed_postdata( array|WP_Error|null $post_data = null )
Returns only allowed post data fields.
Parameters
- $post_data
-
(Optional) The array of post data to process, or an error object.<br> Defaults to the
$_POST
superglobal.Default value: null
Return
(array|WP_Error) Array of post data on success, WP_Error on failure.
Source
File: wp-admin/includes/post.php
Changelog
Version | Description |
---|---|
5.0.1 | Introduced. |