Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created September 14, 2021 13:22
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 plugin-republic/911a10432007537fc95ca3ab175fb9b4 to your computer and use it in GitHub Desktop.
Save plugin-republic/911a10432007537fc95ca3ab175fb9b4 to your computer and use it in GitHub Desktop.
<?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' );
@EzooDeen
Copy link

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

@plugin-republic
Copy link
Author

plugin-republic commented May 25, 2023

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