Last active
December 13, 2023 19:15
-
-
Save robertdevore/b0aa62f72b8c4042633789759f3f753d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Age Verification - Redirect on fail | |
* | |
* @param string $url - The full URL to redirect to (include https://) | |
* | |
* @return string | |
*/ | |
function acme_redirect_on_fail_link( $url ) { | |
$url = 'YOUR_NEW_URL_HERE'; | |
return $url; | |
} | |
add_filter( 'avwp_redirect_on_fail_link', 'acme_redirect_on_fail_link' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Request to update line 9 to 'return $url' to match varibale set in order to work properly