WordPress Formatting Functions

This tutorial is a collection of WordPress formatting function list. This list also includes the deprecated functions. Function with red colour is deprecated in new version of WordPress.

You can format your output from the WordPress default contents.

WordPress Formatting Functions

Below are the list of WordPress formatting functions list:

  • absint
  • add_magic_quotes
  • addslashes_gpc
  • antispambot
  • attribute_escape (deprecated)
  • backslashit
  • balanceTags
  • clean_pre
  • clean_url (deprecated)
  • convert_chars
  • convert_smilies
  • ent2ncr
  • esc_attr
  • esc_html
  • esc_js
  • esc_textarea
  • esc_sql
  • esc_url
  • esc_url_raw
  • force_balance_tags
  • format_to_edit
  • format_to_post (deprecated)
  • funky_javascript_fix (deprecated)
  • htmlentities2
  • is_email
  • js_escape (deprecated)
  • make_clickable
  • popuplinks
  • remove_accents
  • sanitize_email
  • sanitize_file_name
  • sanitize_html_class
  • sanitize_key
  • sanitize_mime_type
  • sanitize_option
  • sanitize_sql_orderby
  • sanitize_text_field
  • sanitize_title
  • sanitize_title_for_query
  • sanitize_title_with_dashes
  • sanitize_user
  • seems_utf8
  • stripslashes_deep
  • trailingslashit
  • untrailingslashit
  • urlencode_deep
  • url_shorten
  • utf8_uri_encode
  • wpautop
  • wptexturize
  • wp_filter_kses
  • wp_filter_post_kses
  • wp_filter_nohtml_kses
  • wp_iso_descrambler
  • wp_kses
  • wp_kses_array_lc
  • wp_kses_attr
  • wp_kses_bad_protocol
  • wp_kses_bad_protocol_once
  • wp_kses_bad_protocol_once2
  • wp_kses_check_attr_val
  • wp_kses_decode_entities
  • wp_kses_hair
  • wp_kses_hook
  • wp_kses_html_error
  • wp_kses_js_entities
  • wp_kses_no_null
  • wp_kses_normalize_entities
  • wp_kses_normalize_entities2
  • wp_kses_post
  • wp_kses_split
  • wp_kses_split2
  • wp_kses_stripslashes
  • wp_kses_version
  • wp_make_link_relative
  • wp_normalize_path
  • wp_rel_nofollow
  • wp_richedit_pre
  • wp_specialchars
  • wp_trim_words
  • zeroise

If you like FreeWebMentor and you would like to contribute, you can write an article and mail your article to [email protected] Your article will appear on the FreeWebMentor main page and help other developers.

Recommended Posts:


Prem Tiwari

An engineer by profession and a passionate blogger by heart. Founder of FreeWebMentor.com (A Programming blog for beginners), Tech Speaker at various forums. A part from this he is an open source enthusiast, WordPress Lover, Blogger, SEO, and Growth Strategic.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.