woocommerce_email_order_meta
Order meta.
Description
do_action( 'woocommerce_email_order_meta', (unknown) $order, (unknown) $sent_to_admin, (unknown) $plain_text, (unknown) $email );
Parameters (4)
- 0. $order (unknown)
- The order.
- 1. $sent_to_admin (unknown)
- The sent to admin.
- 2. $plain_text (unknown)
- The plain text.
- 3. $email (unknown)
- The email.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
- The following example is for adding a hook callback.
- // define the woocommerce_email_order_meta callback
- function action_woocommerce_email_order_meta( $order, $sent_to_admin, $plain_text, $email ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'woocommerce_email_order_meta', 'action_woocommerce_email_order_meta', 10, 4 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'woocommerce_email_order_meta', 'action_woocommerce_email_order_meta', 10, 4 );
Defined (2)
The action is defined in the following location(s).
- /templates/emails/plain/customer-paid-for-order.php
- do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );
- /templates/emails/customer-paid-for-order.php
- do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email );