I wouldn’t recommend deleting anything in WordPress. You can disable wp-cron.php by following these simple steps:
- Open your wp-config.php file with a code editor
- Go to the bottom of the database settings in wp-config.php typically around line 37.
- Add the following code
define('DISABLE_WP_CRON', 'true');
Save your file and your problem/s should be solved.
WordPress uses wp-cron.php for scheduled task in order to automate things like publishing scheduled posts, checking for plugin or theme updates, sending email notifications etc.
You can disable it by writing this line in wp-config.php
define('DISABLE_WP_CRON', 'true');
As virus infection is concerned. Follow instructions below.
https://codex.wordpress.org/FAQ_My_site_was_hacked
Thread Starter
WPrap
(@wprap)
Thank you both … I had searched WP Forums and saw this ‘disable’ but there was some discussion that this did not ‘fix’ server side ‘cron requests’. Any thoughts?
Thread Starter
WPrap
(@wprap)
HELP
I’m about to disable but not sure where the WR-cron.php file is.
Since the website (ie my account at the hosting company) has been De-activated (suspended) I can ‘sign-in’ to WP to search.
Both wp-cron.php and wp-config.php are in the main directory of the blog. You should still be able to access your files using an FTP program or your webhost’s file manager software.
Thread Starter
WPrap
(@wprap)
Thank you, MarkRH
WP-config.php modified … now to get Hosting company to re-instate website/account