Support » Plugin: Sliced Invoices - WordPress Invoice Plugin » HOOKS NOT WORKING sliced_invoice_status_update & sliced_quote_status_update

  • Hello,

    I am trying to add some custom code when status of INVOICE or QUOTE changes. I am using sliced_quote_status_update and sliced_invoice_status_update hooks to perform this operation.

    NOT EVEN SINGLE OF THEM IS WORKING.

    I am using following code to perform this action and I am changing status of code manually.

    code:

    add_action(‘sliced_invoice_status_update’, ‘my_method’ , 10 , 2 );
    function my_method( $invoice_id , $status ) {
    // do stuff
    }

    Hope, you consider this as an issue and address it properly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Andrew Reva

    (@ndrwrv)

    Hello there

    Please let me know what exactly happens? Do you see any error/warning/notice message in the browser window or it just does nothing?

    My best,
    Andrew

    Hello Andrew,

    I did not received any error/warning/notice or message. It just does nothing like call is never make.

    with thanks,
    Dhrumit

    • This reply was modified 4 months, 1 week ago by  dhrumit.
    Adrian Tobey

    (@trainingbusinesspros)

    Hi Andrew, I believe the question is…

    When the status of an Invoice/Quote is changed MANUALLY the action ‘sliced_invoice_status_update/sliced_quote_status_update’ is not fired. The hook is only fired when the status is changed automatically.

    The hook SHOULD be fired in either case.

    • This reply was modified 4 months, 1 week ago by  Adrian Tobey.
Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.