Introduction to the WP Filesystem
I’ve spent a lot of time lately dealing with a little known, under-documented but extremely useful class in WordPress called WP_Filesystem. WP_Filesystem is used throughout WordPress to handle core/plugin/themes updates and various tasks that require writing files to your webserver. The WP_Filesystem class is a base class that has many extensions depending on what ‘method’…