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()代替。

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
function format_to_post( $content ) {
_deprecated_function( __FUNCTION__, '3.9.0' );
return $content;
}
function format_to_post( $content ) { _deprecated_function( __FUNCTION__, '3.9.0' ); return $content; }
function format_to_post( $content ) {
	_deprecated_function( __FUNCTION__, '3.9.0' );
	return $content;
}

常見問題

FAQs
檢視更多 >