Reverse file_put_contents in plugin class