This function had been marked as deprecated since 4.0.0. Use wpdb::esc_like()

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

Signature

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

Return

(string) text, safe for inclusion in LIKE query.

Source

function like_escape($text) {
	_deprecated_function( __FUNCTION__, '4.0', 'wpdb::esc_like()' );
	return str_replace( array( "%", "_" ), array( "\\%", "\\_" ), $text );
}
WP Trac GitHub

Link here