• About WordPress
    • About WordPress
    • WordPress.org
    • Documentation
    • Support
    • Feedback
  • Log In
  • Register
WordPress.org
WordPress.org
  • Plugins
  • Themes
  • Patterns
  • Learn
  • Support
    • Documentation
    • Forums
  • News
  • About
  • Get Involved
    • Five for the Future
  • Showcase
  • Mobile
  • Hosting
  • Openverse
  • Get WordPress
Get WordPress

Developer Resources

Skip to content
Search Results: Home / Reference / sanitize_
44 results found for "sanitize_". Showing results 1 to 30.
Filter by type:

sanitize_key()

Function: Sanitizes a string key.

Source: wp-includes/formatting.php:2154

Used by 56 functions | Uses 2 functions

sanitize_url()

Function: Performs esc_url() for database or redirect usage.

Source: wp-includes/formatting.php:4492

Used by 1 function | Uses 1 function

sanitize_meta()

Function: Sanitizes meta value.

Source: wp-includes/meta.php:1304

Used by 4 functions | Uses 4 functions

sanitize_post()

Function: Sanitizes every post field.

Source: wp-includes/post.php:2691

Used by 8 functions | Uses 1 function

sanitize_term()

Function: Sanitizes all term fields.

Source: wp-includes/taxonomy.php:1643

Used by 9 functions | Uses 1 function

sanitize_user()

Function: Sanitizes a username, stripping out unsafe characters.

Source: wp-includes/formatting.php:2113

Used by 11 functions | Uses 4 functions

sanitize_email()

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

Source: wp-includes/formatting.php:3673

Used by 4 functions | Uses 2 functions

sanitize_title()

Function: Sanitizes a string into a slug, which can be used in URLs or HTML attributes.

Source: wp-includes/formatting.php:2191

Used by 39 functions | Uses 3 functions

sanitize_option()

Function: Sanitizes various option values based on the nature of the option.

Source: wp-includes/formatting.php:4723

Used by 7 functions | Uses 17 functions

sanitize_bookmark()

Function: Sanitizes all bookmark fields.

Source: wp-includes/bookmark.php:333

Used by 3 functions | Uses 1 function

sanitize_category()

Function: Sanitizes category data based on context.

Source: wp-includes/category.php:259

Used by 0 functions | Uses 1 function

sanitize_file_name()

Function: Sanitizes a filename, replacing whitespace with dashes.

Source: wp-includes/formatting.php:2003

Used by 5 functions | Uses 9 functions

sanitize_hex_color()

Function: Sanitizes a hex color.

Source: wp-includes/formatting.php:6051

Used by 2 functions | Uses 0 functions

sanitize_mime_type()

Function: Sanitizes a mime type

Source: wp-includes/formatting.php:5554

Used by 0 functions | Uses 2 functions

rest_sanitize_array()

Function: Converts an array-like value to an array.

Source: wp-includes/rest-api.php:1498

Used by 2 functions | Uses 1 function

sanitize_html_class()

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

Source: wp-includes/formatting.php:2400

Used by 16 functions | Uses 3 functions

sanitize_post_field()

Function: Sanitizes a post field based on context.

Source: wp-includes/post.php:2737

Used by 5 functions | Uses 11 functions

sanitize_term_field()

Function: Sanitizes the field value in the term based on the context.

Source: wp-includes/taxonomy.php:1695

Used by 8 functions | Uses 13 functions

sanitize_text_field()

Function: Sanitizes a string from user input or from the database.

Source: wp-includes/formatting.php:5413

Used by 42 functions | Uses 3 functions

sanitize_user_field()

Function: Sanitizes user field based on context.

Source: wp-includes/user.php:1727

Used by 2 functions | Uses 11 functions

rest_sanitize_object()

Function: Converts an object-like value to an object.

Source: wp-includes/rest-api.php:1543

Used by 2 functions | Uses 0 functions

sanitize_sql_orderby()

Function: Ensures a string is a valid SQL ‘order by’ clause.

Source: wp-includes/formatting.php:2378

Used by 0 functions | Uses 0 functions

sanitize_user_object()

Function: Sanitize every user field.

Source: wp-includes/deprecated.php:2638

Used by 0 functions | Uses 2 functions

wp_sanitize_redirect()

Function: Sanitizes a URL for use in a redirect.

Source: wp-includes/pluggable.php:1439

Used by 3 functions | Uses 2 functions

rest_sanitize_boolean()

Function: Changes a boolean-like value into the proper boolean value.

Source: wp-includes/rest-api.php:1416

Used by 1 function | Uses 0 functions

_sanitize_text_fields()

Function: Internal helper function to sanitize a string from user input or from the database.

Source: wp-includes/formatting.php:5465

Used by 2 functions | Uses 3 functions

sanitize_bookmark_field()

Function: Sanitizes a bookmark field.

Source: wp-includes/bookmark.php:398

Used by 5 functions | Uses 7 functions

sanitize_category_field()

Function: Sanitizes data in single category key field.

Source: wp-includes/category.php:274

Used by 0 functions | Uses 1 function

sanitize_textarea_field()

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

Source: wp-includes/formatting.php:5441

Used by 1 function | Uses 3 functions

sanitize_trackback_urls()

Function: Sanitizes space or carriage return separated URLs that are used to send trackbacks.

Source: wp-includes/formatting.php:5575

Used by 2 functions | Uses 2 functions
1 2 Next »
  • About
  • News
  • Hosting
  • Donate
  • Support
  • Developers
  • Get Involved
  • Learn
  • Showcase
  • Plugins
  • Themes
  • Patterns
  • WordCamp
  • WordPress.TV
  • BuddyPress
  • bbPress
  • WordPress.com
  • Matt
  • Privacy
  • Public Code
WordPress.org
WordPress.org
  • Visit our Facebook page
  • Visit our Twitter account
Code is Poetry