Archive | Functions by letter s RSS feed for this section

sanitize_sql_orderby

Ensures a string is a valid SQL order by clause.Accepts one or more columns, with or without ASC/DESC, and also accepts RAND().

2783

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_post

Sanitize every post field.If the context is ‘raw’, then the post object or array will get minimal santization of the int fields.

2779

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