Skip to content

Instantly share code, notes, and snippets.

@cyberwani
Forked from strangerstudios/my_option_pmpro_tospage.php
Created February 19, 2014 10:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cyberwani/9089715 to your computer and use it in GitHub Desktop.
Save cyberwani/9089715 to your computer and use it in GitHub Desktop.
/*
Set TOS on checkout page.
Change the if/else statement below and change the post ids that $tospage is set to.
*/
function my_option_pmpro_tospage($tospage)
{
global $pmpro_level;
if($pmpro_level->id == 2)
{
$tospage = 5708; //change this
}
else
{
$tospage = 5697;
}
return $tospage;
}
add_filter("option_pmpro_tospage", "my_option_pmpro_tospage");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment