changed the from wp_filsystem->put_contents to the PHP core fucntion file_put_contents