format_to_post() - WordPress 函数参考中文文档

返回介绍

format_to_post()

发布于 2017-09-10 字数1248 浏览 953 评论 0

Warning: This function has been deprecated.

format_to_post( string $content )

Formerly used to escape strings before inserting into the DB.


描述

Has not performed this function for many, many years. Use wpdb::prepare() instead.


参数

$content

(string)
(Required)
The text to format.


返回值

(string) The very same text.


源代码

File: wp-includes/deprecated.php

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

更新日志

Version 描述
3.9.0 This function has been deprecated.
0.71 Introduced.

相关函数

Uses

  • wp-includes/functions.php:
    _deprecated_function()

User Contributed Notes

上一篇:format_to_edit()

下一篇:form_option()

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

目前还没有任何评论,快来抢沙发吧!