Archive | /wp-includes/formatting.php RSS feed for this section

_wp_specialchars

Converts a number of special characters into their HTML entities.Specifically deals with: &, , “, and ‘.

4415

Continue reading

zeroise

Add leading zeros when necessary.If you set the threshold to ‘4’ and the number is ’10’, then you will get back ‘0010’. If you set the threshold to ‘4’ and the number is ‘5000’, then you will get back ‘5000’.

4289

Continue reading

wp_trim_excerpt

Generates an excerpt from the content, if needed.The excerpt word amount will be 55 words and if the amount is greater than that, then the string ‘ […]’ will be appended to the excerpt. If the string is less than 55 words, then the content will be returned as is.

4189

Continue reading

wp_sprintf_l

Localize list items before the rest of the content.The ‘%l’ must be at the first characters can then contain the rest of the content. The list items will have ‘, ‘, ‘, and’, and ‘ and ‘ added depending on the amount of list items in the $args parameter.

4141

Continue reading