You appear to be a bot. Output may be restricted
Description
Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described.
Usage
$string = like_escape( $text );
Parameters
- $text
- ( string ) required – The text to be escaped.
Returns
string text, safe for inclusion in LIKE query.
Source
File name: wordpress/wp-includes/deprecated.php
Lines:
1 to 4 of 4
function like_escape($text) { _deprecated_function( like_escape, '4.0.0', 'wpdb::esc_like()' ); return str_replace( array( "%", "_" ), array( "\\%", "\\_" ), $text ); }