File: wp-includes/formatting.php
-
functionesc_url_raw()
Sanitizes a URL for database or redirect usage.
-
functionwp_iso_descrambler()
Converts to ASCII from email subjects.
-
hookexcerpt_more
Filters the string in the “more” link displayed after a trimmed excerpt.
-
function_wp_iso_convert()
Helper function to convert hex encoded chars to ASCII.
-
hookwp_trim_excerpt
Filters the trimmed excerpt string.
-
functionget_gmt_from_date()
Given a date in the timezone of the site, returns that date in UTC.
-
functionwp_trim_words()
Trims text to a certain number of words.
-
functionget_date_from_gmt()
Given a date in UTC or GMT timezone, returns that date in the timezone of the site.
-
hookwp_trim_words
Filters the text content after words have been trimmed.
-
functioniso8601_timezone_to_offset()
Given an ISO 8601 timezone, returns its UTC offset in seconds.
-
functionent2ncr()
Converts named entities into numbered entities.
-
functioniso8601_to_datetime()
Given an ISO 8601 (Ymd\TH:i:sO) date, returns a MySQL DateTime (Y-m-d H:i:s) format used by post_date[_gmt].
-
hookpre_ent2ncr
Filters text before named entities are converted into numbered entities.
-
functionsanitize_email()
Strips out all characters that are not allowable in an email.
-
hooksanitize_email
Filters a sanitized email address.
-
functionhuman_time_diff()
Determines the difference between two timestamps.
-
functionwp_trim_excerpt()
Generates an excerpt from the content, if needed.
-
hookexcerpt_length
Filters the maximum number of words in a post excerpt.
-
function_make_email_clickable_cb()
Callback to convert email address match to HTML A element.
-
functionbackslashit()
Adds backslashes before letters and before a number at the start of a string.
-
functionmake_clickable()
Converts plaintext URI to HTML links.
-
functiontrailingslashit()
Appends a trailing slash.
-
function_split_str_by_whitespace()
Breaks a string into chunks by splitting at whitespace characters.
-
functionuntrailingslashit()
Removes trailing forward slashes and backslashes if they exist.
-
functionwp_rel_nofollow()
Adds `rel=”nofollow”` string to all HTML A elements in content.
-
functionaddslashes_gpc()
Adds slashes to a string or recursively adds slashes to strings within an array.
-
functionwp_rel_nofollow_callback()
Callback to add `rel=”nofollow”` string to HTML A element.
-
functionstripslashes_deep()
Navigates through an array, object, or scalar, and removes slashes from the values.
-
functiontranslate_smiley()
Converts one smiley code to the icon graphic file equivalent.
-
functionurlencode_deep()
Navigates through an array, object, or scalar, and encodes the values to be used in a URL.