Archive | Filters RSS feed for this section

sanitize_text_field

Sanitize a string from user input or from the dbcheck for invalid UTF-8, Convert single < characters to entity, strip all tags, remove line breaks, tabs and extra white space, strip octets.

2789

Continue reading

sanitize_term_field

Cleanse the field value in the term based on the context.Passing a term field value through the function should be assumed to have cleansed the value for whatever context the term field is going to be used.

2787

Continue reading

sanitize_post_field

Sanitize post field based on context.Possible context values are: ‘raw’, ‘edit’, ‘db’, ‘display’, ‘attribute’ and ‘js’. The ‘display’ context is used by default. ‘attribute’ and ‘js’ contexts are treated like ‘display’ when calling filters.

2781

Continue reading

sanitize_option

Sanitises various option values based on the nature of the option.This is basically a switch statement which will pass $value through a number of functions depending on the $option.

2777

Continue reading

sanitize_key

Sanitize a string key.Keys are used as internal identifiers. Lowercase alphanumeric characters, dashes and underscores are allowed.

2775

Continue reading