• Resolved apavlov2

    (@apavlov2)


    Hello there. I needed to do some work with the invoice after it being generated, and I found it hard to hook in the right spot of the generation process since there is a ‘bewpi_before_document_generation’ but not a ‘bewpi_after_document_generation’. Is it possible to have the following action triggered after the ‘generate’ function of the parent completes?

    What I did is adding the below line in the abstract-invoice.php class on line 323.

    do_action( 'bewpi_after_document_generation', $this->type, $order_id, $this->full_path );

    I know this might have further implications on your side, so please consider it and let me know if it’s do-able and what are the concerns if not.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Allow file manipulation after creation.’ is closed to new replies.