Created
November 14, 2016 21:36
-
-
Save gedex/908e1fbe29f79cf39e1b943709d162c4 to your computer and use it in GitHub Desktop.
Overriding default Monthly Payment Messaging in WooCommerce Gateway Affirm
This file contains hidden or 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 | |
add_filter( 'wc_gateway_affirm_as_low_as_data', function( $data ) { | |
$data['prompt'] = 'or as low as $%s per month'; // %s will replaced by JS | |
return $data; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment