wp_filesystem put_contents issue with owner/group

I got it fixed, using this function request_filesystem_credentials(), it seems to initialize things and gets the proper credentials. Found it in an example in this article: An Introduction to the WordPress Filesystem API. My code: # get credentials function connect_fs() { global $wp_filesystem; if( false === ($credentials = request_filesystem_credentials(”)) ) { return false; } //check … Read more