Archive | Functions RSS feed for this section

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_term

Sanitize Term all fields.Relies on sanitize_term_field() to sanitize the term. The difference is that this function will sanitize all fields. The context is based on sanitize_term_field().

2785

Continue reading

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