Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Replace buyCRED Stripe
- * @version 1.0
- */
- function mycred_pro_replace_stripe_script( $stripe_js ) {
- wp_deregister_script( 'buycred-stripe' );
- wp_register_script( 'buycred-stripe', get_template_directory_uri() . '/your-file.js', array( 'stripe-checkout' ), '1.0' );
- return $stripe_js;
- }
- add_filter( 'mycred_buycred_stripe_js', 'mycred_pro_replace_stripe_script' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement