Below are some example filters that can be used to modify various items throughout the Sliced Invoices plugin. This is by no means a complete list of filters and we will endeavor to add to the list.
You can drop these code snippets into your functions.php file. You can read more about WordPress filters here
/* * Declined Quote admin email */ function sliced_modify_quote_declined_email( $content, $id ) { $content = 'Bummer! %client_business% has declined your quote (%number%) for %total%.'; $content .= '%link%'; return $content; } add_filter('sliced_admin_notification_quote_declined', 'sliced_modify_quote_declined_email', 10, 2);
/* * Accepted Quote admin email */ function sliced_modify_quote_accepted_email( $content, $id ) { $content = 'Woohoo! %client_business% has accepted your estimate of %total%.'; $content .= '%link%'; $content .= 'An invoice has automatically been created.'; return $content; } add_filter('sliced_admin_notification_quote_accepted', 'sliced_modify_quote_accepted_email', 10, 2);
/* * Payment Received admin email */ function sliced_modify_payment_received_email( $content, $id ) { $content = 'Woohoo! A new payment has been made'; $content .= '%client_business% has just made a payment for %total% on invoice %number%.'; return $content; } add_filter('sliced_admin_notification_payment_received', 'sliced_modify_payment_received_email', 10, 2);