sanitize_ (tag)

sanitize_email()

Strips out all characters that are not allowable in an email.

sanitize_file_name()

Sanitizes a filename, replacing whitespace with dashes.

sanitize_html_class()

Sanitizes an HTML classname to ensure it only contains valid characters.

sanitize_key()

Sanitizes a string key.

sanitize_meta()

Sanitize meta value.

sanitize_mime_type()

Sanitize a mime type

sanitize_option()

Sanitises various option values based on the nature of the option.

sanitize_post()

Sanitize every post field.

sanitize_post_field()

Sanitize post field based on context.

sanitize_sql_orderby()

Ensures a string is a valid SQL 'order by' clause.

sanitize_term()

Sanitize all fields of the taxonomy element (term) using the sanitize_term_field() function.

sanitize_term_field()

Prepares (cleanse) term field value for use it in a text or elsewhere (depends on cleaning context).

sanitize_text_field()

Sanitizes the passed string leaving clean text: without HTML tags, line breaks, etc.

sanitize_textarea_field()

Sanitizes a multiline string from user input or from the database.

sanitize_title()

Sanitize the passed string (title) to use it as a slug (post_name). Or returns a fallback title.

sanitize_title_for_query()

Sanitizes a title with the 'query' context.

sanitize_title_with_dashes()

Sanitizes a title, replacing whitespace and a few other characters with dashes.

sanitize_url()

Sanitizes a URL for database or redirect usage.

sanitize_user()

Sanitizes a username, stripping out unsafe characters.

wc_clean()

Cleans the passed data (variables) using sanitize_text_field(). Arrays are cleared recursively.

wp_check_invalid_utf8()

Checks for invalid UTF8 in a string.