Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Change Load Coupon Labels
- * Changes the coupon labels for the mycred_load_coupon shortcode
- * without the need to translate the plugin. Replace "MY WORD" with your string.
- * @version 1.0
- */
- add_filter( 'mycred_load_coupon', 'mycred_pro_adjust_coupon_form' );
- function mycred_pro_adjust_coupon_form( $output ) {
- // Replace "Coupon" title
- $output = str_replace( '<label for="mycred-coupon-code">' . __( 'Coupon', 'mycred' ) . '</label>', '<label for="mycred-coupon-code">MY WORD</label>', $output );
- // Replace button label
- $output = str_replace( 'button-primary" value="' . __( 'Apply Coupon', 'mycred' ) . '"', 'button-primary" value="MY WORD"', $output );
- return $output;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement