Hoster complained about viruses on the site. Threw the information in any files. And blocked to correct the problem. The question is how to remove viruses?

CMS - wordpress, (I confess) a template downloaded for free on the Internet.
Hoster (after 3 years), complained of viruses on the website. Indicated the names of the files and was gone...
The question is, how in those files to find malicious code and remove it?

Here is the file, if that will help.
April 19th 20 at 12:38
4 answers
April 19th 20 at 12:40

Variable install_code looks crazy weird.
Of course, I suspect that WP is not to be, but it is the suspicious fragment to all files

Yeah, a request to receive content from a third party site
I do know that the whole file needs to be deleted. It is entirely viral. - jared89 commented on April 19th 20 at 12:43
April 19th 20 at 12:42
April 19th 20 at 12:44
The easiest option and the most reliable to restore from a backup of the site files and database dump
I venture to suggest that the viruses were already... - jared89 commented on April 19th 20 at 12:47
All the files that you brought up, have someone else's code.
I have had the privilege to work with contaminated sites on different CMS, it's a fun, long,expensive chore. Therefore, I say that it is easier to see what is in the backups - paula.Satterfield commented on April 19th 20 at 12:50
April 19th 20 at 12:46
It makes no sense to remove this code because you have installed it with some plugin. I would suggest that you have a premium plugin that you have downloaded "free" and with it the entire "perfect" Luggage.
Accordingly, in addition to cleaning these files search for your plugin and delete it. Or it could be a premium theme you're using. Then look for example, functions.php
Also install the Wordfence plugin and scan your website

Find more questions by tags WordPressviruses