Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

format_to_edit()

3 tags 1 category

format_to_edit() — Acts on text which is about to be edited. The $content is run through esc_textarea(), which uses htmlspecialchars() to convert special characters to HTML entities. If $richedit is set to true, it is simply a holder for the {

Inputs: $content (string): The text about to be edited. $rich_text (bool): Optional. Whether $content should be considered rich text, in which case it would not be passed through esc_textarea(). Default false.

Returns string: The text after the filter (and possibly htmlspecialchars()) has been run.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…