Created
September 14, 2021 13:22
-
-
Save plugin-republic/911a10432007537fc95ca3ab175fb9b4 to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Change the 'Payment Options' text string | |
*/ | |
function prefix_deposit_field_heading( $label ) { | |
return 'My new heading'; | |
} | |
add_filter( 'wcdpp_deposit_field_heading', 'prefix_deposit_field_heading' ); | |
function prefix_deposit_amount_label( $label, $deposit, $product ) { | |
return sprintf( | |
__( 'My new label (%s)', 'wcdpp' ), | |
$deposit | |
); | |
} | |
add_filter( 'wcdpp_deposit_amount_label', 'prefix_deposit_amount_label', 10, 3 ); | |
function prefix_pay_in_full_label_front_end( $label ) { | |
return 'My new label'; | |
} | |
add_filter( 'wcdpp_pay_in_full_label_front_end', 'prefix_pay_in_full_label_front_end' ); |
Hi - please raise a ticket here, https://pluginrepublic.com/support/, and we'll take a look for you.
Thanks.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
there's problem with pay in full, its not changing the string. how can i solve this?
New Recording - 5/25/2023, 1:03:25 PM