On this page
format_to_post( string $content ): string
This function has been deprecated.
Formerly used to escape strings before inserting into the DB.
Description
Has not performed this function for many, many years. Use wpdb::prepare() instead.
Parameters
$contentstring Required-
The text to format.
Return
string The very same text.
Source
File: wp-includes/deprecated.php. View all references
function format_to_post( $content ) {
_deprecated_function( __FUNCTION__, '3.9.0' );
return $content;
}
Related
Uses
| Uses | Description |
|---|---|
| _deprecated_function() wp-includes/functions.php | Marks a function as deprecated and inform when it has been used. |
Changelog
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/format_to_post