woocommerce_email_general_block_content
Action hook for email classes to hook into the general block email template.
Usage
add_action( 'woocommerce_email_general_block_content', 'wp_kama_woocommerce_email_general_block_content_action', 10, 3 );
/**
* Function for `woocommerce_email_general_block_content` action-hook.
*
* @param bool $sent_to_admin Whether the email is being sent to admin.
* @param bool $plain_text Whether the email is being sent as plain text.
* @param WC_Email $email The email object.
*
* @return void
*/
function wp_kama_woocommerce_email_general_block_content_action( $sent_to_admin, $plain_text, $email ){
// action...
}
- $sent_to_admin(true|false)
- Whether the email is being sent to admin.
- $plain_text(true|false)
- Whether the email is being sent as plain text.
- $email(WC_Email)
- The email object.
Changelog
| Since 10.5.0 | Introduced. |
Where the hook is called
woocommerce_email_general_block_content
woocommerce/templates/emails/block/general-block-email.php 100
do_action( 'woocommerce_email_general_block_content', $sent_to_admin, $plain_text, $email );
Where the hook is used in WooCommerce
woocommerce/includes/emails/class-wc-email-admin-payment-gateway-enabled.php 73
add_action( 'woocommerce_email_general_block_content', array( $this, 'block_content' ), 10, 3 );