woocommerce_email_content_post_data
woocommerce_email_content_post_data
Appears in: woocommerce.10.5.2, woocommerce.10.5.3, woocommerce.10.6.1, woocommerce.10.6.2, woocommerce.10.8.1, woocommerce.10.9.1, woocommerce.10.9.3, woocommerce.10.9.4
Hook Type: filter
Displaying hooks found in version: woocommerce.10.9.4apply_filters('woocommerce_email_content_post_data') is found 1 times:
- /src/Internal/EmailEditor/WCTransactionalEmails/WCTransactionalEmailPostsGenerator.php line 363
* @param array $post_data The post data array to be used for wp_insert_post(). * @param string $email_type The email type identifier (e.g., 'customer_processing_order'). * @param \WC_Email $email The WooCommerce email object. */ $filtered_post_data = apply_filters( 'woocommerce_email_content_post_data', $post_data, $email_type, $email ); return is_array( $filtered_post_data ) ? $filtered_post_data : $post_data; } /** * Compute the canonical `post_content` for a given email.