woocommerce_email_editor_rendering_email_context

woocommerce_email_editor_rendering_email_context

Appears in:
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.10.4.3

apply_filters('woocommerce_email_editor_rendering_email_context') is found 1 times:

  • /packages/email-editor/src/Engine/Renderer/ContentRenderer/class-content-renderer.php line 213
    		 *     @type int    $order_id        The order ID (for order-related emails).
    		 *     @type string $email_type      The type of email being rendered.
    		 * }
    		 */
    		$email_context = apply_filters( 'woocommerce_email_editor_rendering_email_context', array() );
    
    		$context = new Rendering_Context( $this->theme_controller->get_theme(), $email_context );
    
    		$block_type = $this->block_type_registry->get_registered( $parsed_block['blockName'] );
    		try {
    			if ( $block_type && isset( $block_type->render_email_callback ) && is_callable( $block_type->render_email_callback ) ) {
    

See this hook used in plugins: