Skip to content

Instantly share code, notes, and snippets.

@ahmadawais
ahmadawais / flywheel-local-xdebug-vscode.md
Last active November 23, 2023 16:55
Debug WordPress with Visual Studio Code | VSCode WordPress Debug Setup | WordPress xDebug Setup for Local by FlyWheel with VSCode | Part of the VSCode Learning Course → https://VSCode.pro

VSCode WordPress Debugging Setup: WordPress Xdebug Setup for Local by FlyWheel with VSCode


Consider supporting my work by purchasing the course this tutorial is a part of i.e. VSCode Power User

🚅 TL;DR

  • Make sure your Local by FlyWheel WordPress install is a custom install
@kenanfallon
kenanfallon / gist:260149218ad43b5252785faa5f968589
Created September 22, 2016 01:32
Protect Nginx Digital Downloads
location ~ ^/wp-content/uploads/woocommerce_uploads/(.*?)\.zip$ {
rewrite / permanent;
}
location ~ ^/wp-content/uploads/woocommerce_uploads/(.*?)\.wav$ {
rewrite / permanent;
}
location ~ ^/wp-content/uploads/woocommerce_uploads/(.*?)\.mp3$ {
rewrite / permanent;