Sending an Invoice

<?php
// Sending the invoice notification using an array of user ids
do_action( 'send_invoice', $invoice, $user_ids );
// Users are associated to the client, which is associated to
// the invoice. To get the list of associated user ids the function
// SI_Notifications_Control::get_document_recipients( $invoice ) can
// be used.
$invoice = SI_Invoice::get_instance( $invoice_id ); // $invoice_id is the post id.
$user_ids = SI_Notifications_Control::get_document_recipients( $invoice );
do_action( 'send_invoice', $invoice, $user_ids );
view raw functions.php hosted with ❤ by GitHub
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us