woocommerce_email_fulfillment_meta
Hook for the woocommerce_email_fulfillment_meta.
Usage
add_action( 'woocommerce_email_fulfillment_meta', 'wp_kama_woocommerce_email_fulfillment_meta_action', 10, 5 );
/**
* Function for `woocommerce_email_fulfillment_meta` action-hook.
*
* @param WC_Order $order The order object.
* @param Fulfillment $fulfillment The fulfillment object.
* @param bool $sent_to_admin Whether the email is sent to admin.
* @param bool $plain_text Whether the email is plain text.
* @param WC_Email $email The email object.
*
* @return void
*/
function wp_kama_woocommerce_email_fulfillment_meta_action( $order, $fulfillment, $sent_to_admin, $plain_text, $email ){
// action...
}
- $order(WC_Order)
- The order object.
- $fulfillment(Fulfillment)
- The fulfillment object.
- $sent_to_admin(true|false)
- Whether the email is sent to admin.
- $plain_text(true|false)
- Whether the email is plain text.
- $email(WC_Email)
- The email object.
Changelog
| Since 10.1.0 | Introduced. |
Where the hook is called
woocommerce_email_fulfillment_meta
woocommerce/templates/emails/customer-fulfillment-deleted.php 63
do_action( 'woocommerce_email_fulfillment_meta', $order, $fulfillment, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-fulfillment-deleted.php 46
do_action( 'woocommerce_email_fulfillment_meta', $order, $fulfillment, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-fulfillment-updated.php 48
do_action( 'woocommerce_email_fulfillment_meta', $order, $fulfillment, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/plain/customer-fulfillment-created.php 46
do_action( 'woocommerce_email_fulfillment_meta', $order, $fulfillment, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-fulfillment-updated.php 64
do_action( 'woocommerce_email_fulfillment_meta', $order, $fulfillment, $sent_to_admin, $plain_text, $email );
woocommerce/templates/emails/customer-fulfillment-created.php 63
do_action( 'woocommerce_email_fulfillment_meta', $order, $fulfillment, $sent_to_admin, $plain_text, $email );
Where the hook is used in WooCommerce
woocommerce/includes/class-wc-emails.php 247
add_action( 'woocommerce_email_fulfillment_meta', array( $this, 'fulfillment_meta' ), 30, 4 );