Skip to content

Instantly share code, notes, and snippets.

@thomasplevy
Created August 8, 2016 16:37
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 thomasplevy/154c686786769ac0be2f6b345ac3b335 to your computer and use it in GitHub Desktop.
Save thomasplevy/154c686786769ac0be2f6b345ac3b335 to your computer and use it in GitHub Desktop.
remove "single payment of" via LifterLMS filters
<?php // don't copy this line into your functions.php file
/**
* Programatically remove "Single Payment Of" from LifterLMS pricing screens
* @param string $text HTML / Text to display the price
* @param obj $product Instance of the LLMS_Product
* @return string
*/
function llms_get_single_price_html( $text, $product ) {
return str_replace( 'single payment of ', '', $text );
}
add_filter( 'lifterlms_get_single_price_html', 'llms_get_single_price_html', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment