Hello. I’m developing my theme and I use wp_remote_content instead of file_get_contents to get the content of a remote file.
And I need to use the function ‘file_put_contents’ to overwrite a file with new content and also append contents several times in some cases. Can I use ‘file_put_contents’ function to be accepted for ThemeForest? ThemeCheck warns me about using file_get_contents, but not about file_put_contents.
I would like to use $wp_filesystem->put_contents instead, but it seems the WP function does not support overwriting feature(there’s no argument for it). What should I do?