• Resolved surenkasil

    (@surenkasil)


    Hi,

    I have added below code to my functions.php child theme and when I submit an invoice for payment and gets paid, it is not triggering the action to my error_log.
    Not sure if I am missing something to implement the code?

    Here is my simple code.

    function _wpi_wpinv_complete_payment( $invoice_id ) {

    error_log(“yes it works” . $invoice_id);

    }
    add_action( ‘wpinv_complete_payment’, ‘_wpi_wpinv_complete_payment’, 10, 1 );`

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘Calling the wpinv_complete_payment’ is closed to new replies.