• Resolved moaschtr

    (@moaschtr)


    Hi there and thank you for this great plugin!

    I was searching and trying the whole day, but I coudn’t figure out how to enable shortcodes in the offline payment instructions. I would like to add a QR code (bar code; from the SEPA Girocode plugin) for banking apps in there. It works fine outside the Give form, but not within the instructions. I have different donation forms and the shortcode would make it very easy in dynamically create the QR Code containing all information like account beneficiary, amount, purpose etc.#

    I was trying something like this in my child-theme functions.php:
    add_filter( 'give_offline_instructions', 'do_shortcode' );
    but no luck.

    Is there a way to hook into this to make shortcodes work? Thank you very much.

Viewing 1 replies (of 1 total)
  • Plugin Author Matt Cromwell

    (@webdevmattcrom)

    Apologies for the delay @moaschtr — it appears we missed this issue completely. Normally, I’d provide a snippet to force that behavior for you, but the way the offline donations instructions are currently output prevents me from doing that effectively.

    I created an issue so we can address this in the next version of Give. If you are feeling brave, you can see the fix I suggested, it’s relatively straight-forward if you are comfortable with PHP. I don’t normally recommend editing the core plugin files ever, but since this will most likely be in the next version it’s not such a big deal.

    https://github.com/WordImpress/Give/issues/2937

    Thanks!

Viewing 1 replies (of 1 total)
  • The topic ‘Enable Shortcodes in Offline Instructions’ is closed to new replies.