WordPress at a glance
Home Functions From tag: sanitize_

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_meta()

Sanitize meta value.

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()

Sanitizes a title, or returns a fallback title.

sanitize_title_with_dashes()

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

sanitize_user()

Sanitizes a username, stripping out unsafe characters.

wc_clean()

Clean variables using sanitize_text_field. Arrays are cleaned recursively. Non-scalar values are ignored.

wp_parse_slug_list()

Clean up an array, comma- or space-separated list of slugs.

wp_rel_nofollow()

Adds rel nofollow string to all HTML A elements in content.