WPDev.one
Core Function
View Source on Trac ↗

_wp_get_allowed_postdata()

_wp_get_allowed_postdata( mixed $post_data = null )

Returns only allowed post data fields.

Parameters 1 required

Name / Type Description
mixed

(array | WP_Error | null) $post_data The array of post data to process, or an error object. Defaults to the `$_POST` superglobal.

Required

Return Value

((array)
| WP_Error) Array of post data on success, WP_Error on failure.

Function Information

Since Version
5.0.1
Source File
wp-admin/includes/post.php
Advertisement