format_to_post()WP 0.71

Deprecated from version 3.9.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Formerly used to escape strings before inserting into the DB.

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

No Hooks.


String. The very same text.


format_to_post( $content );
$content(string) (required)
The text to format.


Since 0.71 Introduced.
Deprecated 3.9.0

Code of format_to_post() WP 6.0

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