Support » Plugin: Invoices for WooCommerce » remove_filter

  • Hello,

    I’m looking for a way to remove the filter you have on line 180 of woocommerce-pdf-invoices/includes/woocommerce-pdf-invoices.php

    add_filter( ‘woocommerce_email_headers’, array( $this, ‘add_emailitin_as_recipient’ ), 10, 3 );

    I used to have :
    remove_filter( ‘woocommerce_email_headers’, array(‘BE_WooCommerce_PDF_Invoices’,’add_emailitin_as_recipient’), 10 );
    on the init hook but it doesn’t work anymore ?

    Do you have an idea ?

    Thank you

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bas Elbers

    (@baaaaas)

    Hi,

    May I ask why you would like to remove the filter? Your could should work since I did not make any change to it.

    Thread Starter Boris Colombier

    (@boriscolombier)

    Hello,

    With this filter, I have a conflict with this plugin : https://woocommerce.com/products/ordercustomer-csv-export/
    when I when to export order csv by email.

    The error is :
    Too few arguments to function BE_WooCommerce_PDF_Invoices::add_emailitin_as_recipient(), 2 passed in /srv/users/serverpilot/apps/capharnaum/public/wp-includes/class-wp-hook.php on line 286 and exactly 3 expected in /srv/users/serverpilot/apps/capharnaum/public/wp-content/plugins/woocommerce-pdf-invoices/includes/woocommerce-pdf-invoices.php:500

    So emails are never sent.
    This is why I want to remove it

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘remove_filter’ is closed to new replies.