woocommerce_email_editor_render_end
Fires when rendering an email's content has finished, whether it succeeded or threw.
Counterpart of woocommerce_email_editor_render_start, for integrations that change global state for the render, such as hooked filters, and have to put it back afterwards. The renderer has already been reset when it fires, so a callback must not throw and must not expect render state.
Usage
add_action( 'woocommerce_email_editor_render_end', 'wp_kama_woocommerce_email_editor_render_end_action' );
/**
* Function for `woocommerce_email_editor_render_end` action-hook.
*
* @return void
*/
function wp_kama_woocommerce_email_editor_render_end_action(){
// action...
}Changelog
| Since 2.18.0 | Introduced. |
Where the hook is called
woocommerce_email_editor_render_end
woocommerce/packages/email-editor/src/Engine/Renderer/ContentRenderer/class-content-renderer.php 260
do_action( 'woocommerce_email_editor_render_end' );
Where the hook is used in WooCommerce
woocommerce/src/Blocks/BlockTypesController.php 186
add_action( 'woocommerce_email_editor_render_end', array( $this, 'restore_data_attributes_after_email_render' ) );
woocommerce/src/Blocks/BlockTypesController.php 198
remove_action( 'woocommerce_email_editor_render_end', array( $this, 'restore_data_attributes_after_email_render' ) );