_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:

Description

Returns only allowed post data fields.

Related Functions

_wp_translate_postdata, wp_reset_postdata, get_postdata, wp_get_single_post, wp_get_post_cats

Top Google Results

User discussions

wpseek mobile