Skip to content

Add pre-redirect action and use to set a header

A header indicating the redirect's source can be very handy. By using an action, this can be conditionally added when WP_DEBUG is true, or added always while providing an easy way for a user to remove.