WordPress at a glance
function is not described

format_to_post() WP 0.71

Deprecated in 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 DEL 3.9.0 Introduced.

Code of format to post: wp-includes/deprecated.php WP 5.4.2

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