No, the FTP access and multcloud stuff has nothing to do with being hacked.
Wordpress or one of its plugins has a security vulnerability that was abused by a hacker to get in and plant the malware files. WP is well known to be full of security issues. Keeping it up to date and not using themes and extensions from questionable websites (some dubious sites offer "free" themes and extensions that include a backdoor) can help with this, but just not using WP is the only surefire way to prevent its exploitation.