Skip to content

Helpful snippets

David de Boer edited this page May 31, 2017 · 19 revisions

Want to make small changes to the "Mollie Payments for WooCommerce" plugin? Use these snippets, provided by others users. Use at your own risk!


remove/unhook notice in emails with uncertain payment status

function remove_mollie_payment_status_message_in_mails(){
    global $gateway;
    remove_action('woocommerce_email_after_order_table', array($gateway, 'displayInstructions'), 10);
}
add_action( 'woocommerce_email_after_order_table', 'remove_mollie_payment_status_message_in_mails', 1, 0);

By @afeistenauer in Issue 99

Clone this wiki locally