format_to_post

函数
format_to_post ( $content )
参数
  • (string) $content The text to format.
    Required:
返回值
  • (string) The very same text.
定义位置
相关方法
format_to_editurl_to_postidform_optionformat_code_lang_draft_or_post_title
引入
0.71
弃用
3.9.0

format_to_post: 这个函数用于格式化文本以存储在WordPress数据库中。它将某些字符和实体转换为它们相应的HTML实体。

以前用于在插入数据库之前转义字符串。

已经很多很多年没有执行这个函数了。请使用wpdb::prepare()代替。

function format_to_post( $content ) {
	_deprecated_function( __FUNCTION__, '3.9.0' );
	return $content;
}

常见问题

FAQs
查看更多 >
闪电侠

(工作日 10:00 - 18:30 为您服务)

2025-12-05 14:32:54

您好,无论是售前、售后、意见建议……均可通过联系工单与我们取得联系。

您也可选择聊天工具与我们即时沟通或点击查看:

您的工单我们已经收到,我们将会尽快跟您联系!
取消
选择聊天工具: