Creating directory and file using native wordpress file system
This is pretty tough for me to through this. But You may follow this . 1.First let us check for the folder if it exists we will not execute anymore. if ( file_exists(trailingslashit(WP_PLUGIN_DIR).’demo’ ) ) { exit; } 2.Now we will get the credential if (false === ($creds = request_filesystem_credentials($url, $method, false, false, $form_fields) ) … Read more