Last active
August 11, 2018 10:44
-
-
Save thomasplevy/c7b65cf2dde1931b87a4fe094061ebb6 to your computer and use it in GitHub Desktop.
change free text access plan text
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 include this line in your functions.php file! | |
/* | |
* Change the text displayed for free ($0.00) access plans | |
* @param string $text the default text ("Free") | |
* @return string | |
*/ | |
function my_free_pricing_text( $text ) { | |
return __( 'INCLUDED', 'my-text-domain' ); // change text to whatever you want here | |
} | |
add_filter( 'llms_get_free_access_plan_pricing_text', 'my_free_pricing_text' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Thomas,
I have to appreciate your creation of this filter but I would like bring it a bit further.
Let me explain. I am building a new website and I need to use the membership feature to sell some courses in bulk but instead of write the same word for every free price I would like to get the price of the access plan for the membership.
Now I've started to dig into your code and I came up with this code that I am usign inside my template file
lifterlms/product/pricing-table.php
inside theforeach
that you use to loop all the access plan:Hope that you can show me a way to work this out.
Sorry if I comment this snippet to get help but I didn't know if it was better to open an issue on the repo or contact you directly.
Let me know if you prefer a way of contact.
All the best,
Andrea