WordPress at a glance
function is not described

like_escape() WP 2.5.0

Deprecated in 4.0.0. It is no longer supported and can be removed in future releases. Use wpdb::esc_like() instead.

Formerly used to escape strings before searching the DB. It was poorly documented and never worked as described.

  • See: wpdb::esc_like()

No Hooks.

Return

String. text, safe for inclusion in LIKE query.

Usage

like_escape( $text );
$text(string) (required)
The text to be escaped.

Code of like escape: wp-includes/deprecated.php WP 5.2.2

<?php
function like_escape($text) {
	_deprecated_function( __FUNCTION__, '4.0.0', 'wpdb::esc_like()' );
	return str_replace( array( "%", "_" ), array( "\\%", "\\_" ), $text );
}