sanitize_post Wordpress function


Description:

Sanitize every post field.


Syntax:


Arguments:

(object|WP_Post|array) $post The Post Object or Array
(string) $context Optional, default is 'display'. How to sanitize post fields.


Return Type:

(object|WP_Post|array) The now sanitized Post Object or Array (will be the same type as $post)


Define At:

wp-includes/post.php


Wordpress Reference URL:

http://codex.wordpress.org/Function_Reference/sanitize_post


0 Flares Facebook 0 Google+ 0 0 Flares ×
Posted in: Wordpress functions
0 Flares Facebook 0 Pin It Share 0 Google+ 0 0 Flares ×