Created
August 8, 2016 16:37
-
-
Save thomasplevy/154c686786769ac0be2f6b345ac3b335 to your computer and use it in GitHub Desktop.
remove "single payment of" via LifterLMS filters
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 // 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