woocommerce_email_editor_render_end │ хук-событие │ WC 2.18.0

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.

Использование

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

Список изменений

С версии 2.18.0 Введена.

Где вызывается хук

Content_Renderer::render_without_css_inline()
woocommerce_email_editor_render_end

Где используется хук в 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' ) );