Created
December 23, 2019 12:48
-
-
Save iamsathyaseelan/79abbd3ff5329dc81db3ac1d801545d1 to your computer and use it in GitHub Desktop.
removing the retainful log
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(is_admin()) { | |
add_action('init', function () { | |
$path = ABSPATH . 'wp-content/retainful.log'; | |
if (file_exists($path)) { | |
unlink($path); | |
} | |
}); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment