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 readingEnsures 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 readingSanitize 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 readingSanitize every post field.If the context is ‘raw’, then the post object or array will get minimal santization of the int fields.
2779
Continue readingSanitises 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 readingSanitize a string key.Keys are used as internal identifiers. Lowercase alphanumeric characters, dashes and underscores are allowed.
2775
Continue reading