format_to_edit ( $content, $rich_text = false )

  • (string) content The text about to be edited.
  • (bool) rich_text Optional. Whether `$content` should be considered rich text, in which case it would not be passed through esc_textarea(). Default false.
  • (string) The text after the filter (and possibly htmlspecialchars()) has been run.
Defined at:
Change Log:
  • 4: .


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 {@see 'format_to_edit'} filter.

Related Functions

format_for_editor, format_to_post, load_image_to_edit, get_term_to_edit, get_post_to_edit

Top Google Results

User discussions

wpseek mobile