Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created April 6, 2012 22:07
Show Gist options
  • Save strangerstudios/2323424 to your computer and use it in GitHub Desktop.
Save strangerstudios/2323424 to your computer and use it in GitHub Desktop.
Hide the Level Description from the Checkout Page with Paid Memberships Pro
<?php
/*
In Paid Memberships Pro v1.4+ the memberhsip level description is shown on the checkout page. This code will remove the description on the checkout page.
*/
function my_pmpro_remove_description_from_checkout_page($level)
{
$level->description = "";
return $level;
}
add_filter("pmpro_checkout_level", "my_pmpro_remove_description_from_checkout_page");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment