I am using the Wordpress plugin for Stripe, which has a hook action called:
do_action( 'wc_stripe_checkout_receipt_page_before_form' );
This action is located above the Stripe payment form & I would like to display some text here, so how I tap into this hook?
This action can be found in the source below on line 541
This is what I have tried
remove_action('wc_stripe_checkout_receipt_page_before_form');
add_action('foobar', 'wc_stripe_checkout_receipt_page_before_form');
function foobar(){
echo 'foo';
}
which produces the following warning, but does not display my echo 'foo'
Missing argument 2 for remove_action(),