Skip to content

Instantly share code, notes, and snippets.

@GiannisRallis
GiannisRallis / PMPro-Redirect-After-Checkout.php
Last active August 31, 2023 07:46
PMPro Redirect After Checkout to last visited URL
<?php
/**
* Paste the Code inside function.php file or use Code Snipet .
*/
/**
* Store the last URL visited on each page load.
*/
function my_pmpro_redirect_to_referring_page_after_checkout_track() {