woocommerce_email_content_post_data

woocommerce_email_content_post_data

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.10.9.4

apply_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.