Created
September 26, 2019 20:27
-
-
Save robertdevore/3cb61a5bfd4addc68a2668ec52982d52 to your computer and use it in GitHub Desktop.
Change the URL for the Age Verification plugin's redirect on fail (user selects NO button)
This file contains hidden or 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 | |
| /** | |
| * Redirect users who select "NO" in the age verification pop up. | |
| */ | |
| function acme_avwp_redirect_on_fail_link( $redirect_fail ) { | |
| $redirect_fail = 'https://yoururlhere.com'; | |
| return $redirect_fail; | |
| } | |
| add_filter( 'acme_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