Skip to content

Instantly share code, notes, and snippets.

View Danw33's full-sized avatar
🦄
🪄 ✨ 💻

Daniel Wilson Danw33

🦄
🪄 ✨ 💻
View GitHub Profile
@Danw33
Danw33 / mu-plugin-log-wp-redirects.php
Last active April 1, 2019 01:52
Danw33's Redirect Log for WordPress (mu-plugin)
<?php
/**
* Logs calls to wp_safe_redirect and wp_redirect to allow for server-side optimisation of common redirects
*
*
* @wordpress-plugin
* Plugin Name: WP Redirect Log
* Plugin URI: https://gist.github.com/Danw33/6ad3b423ca2d57ed46a1b21461c13498
* Description: Logs calls to wp_redirect and wp_safe_redirect to allow for server-side optimisation of common redirects
* Version: 1.0.0