首页 WordPress函数大全 format_to_edit()

format_to_edit()

2020-05-01 / 3059阅 / 悠然

如何你看完本文还不知道如何使用该函数,可以联系我定制视频教程,50元/个函数,学不会全额退款

format_to_edit( string $content, bool $rich_text = false )

Acts>

Contents

  • Description
    • Parameters
    • Return
    • Source
    • Changelog
  • Related
    • Uses
    • Used By
  • User Contributed Notes

描述

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 ‘format_to_edit’ filter.

参数

$content

(string)
(Required)
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 value: false

返回

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

大家谈论
    我的见解