Skip to content

Instantly share code, notes, and snippets.

@strangerstudios
Created June 29, 2015 19:25
Show Gist options
  • Save strangerstudios/68bb75bf3b83530390d4 to your computer and use it in GitHub Desktop.
Save strangerstudios/68bb75bf3b83530390d4 to your computer and use it in GitHub Desktop.
Update Pay by Check wording in pmpro-pay-by-check to something else.
<?php
/*
Change "Pay by Check" language to "Pay by Wire Transfer"
Add this code to your active theme's functions.php
or a custom plugin.
*/
function my_gettext_pay_by_check($translated_text, $text, $domain)
{
if($domain == "pmpropbc" && $text == "Pay by Check")
$translated_text = "Pay by Wire Transfer"; //change the text here
return $translated_text;
}
add_filter('gettext', 'my_gettext_pay_by_check', 10, 3);
@guure88
Copy link

guure88 commented Jul 7, 2018

Using pay by check , the payment status is pending but all contents of the page will be open and user directly access , so how we can prevent users not access until payment is approved .

Thanks

@grifini
Copy link

grifini commented Jul 6, 2019

Hi,
guure88 any solution for the aforementioned problem? It seems that the pending status does not restrict users' access to the available content.

@grifini
Copy link

grifini commented Jul 8, 2019

Besides, this method does not work at all! Still says "Pay bu Check"

@m-tau
Copy link

m-tau commented Jul 31, 2020

@grifini - the above function needs one change to make it work,

REPLACE > if($domain == "pmpropbc" && $text == "Pay by Check")
WITH > if($domain == "pmpro-pay-by-check" && $text == "Pay by Check")

@cremigerhonig
Copy link

same here, pending status doesn´t protect users from to see restricted content AND there is also no mail send to the user if you change from pending to success

immediate access: strangerstudios/pmpro-pay-by-check#64
no email on changing status: strangerstudios/pmpro-pay-by-check#65
new orders are not created: strangerstudios/pmpro-pay-by-check#66

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment