Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described.
Description
See also
Parameters
$text
stringrequired- The text to be escaped.
Source
function like_escape($text) {
_deprecated_function( __FUNCTION__, '4.0.0', 'wpdb::esc_like()' );
return str_replace( array( "%", "_" ), array( "\\%", "\\_" ), $text );
}
User Contributed Notes
You must log in before being able to contribute a note or feedback.