sanitize_post_field Wordpress function


Description:

Sanitize post field based on context.


Syntax:


Arguments:

(string) $field The Post Object field name.
(mixed) $value The Post Object value.
(int) $post_id Post ID.
(string) $context How to sanitize post fields. Looks for 'raw', 'edit', 'db', 'display', 'attribute' and 'js'.


Return Type:

(mixed) Sanitized value.


Define At:

wp-includes/post.php


Wordpress Reference URL:

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


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