woocommerce_email_editor_rendering_email_context

woocommerce_email_editor_rendering_email_context

Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.10.9.4

apply_filters('woocommerce_email_editor_rendering_email_context') is found 1 times:

  • /packages/email-editor/src/Engine/Renderer/ContentRenderer/class-content-renderer.php line 592
    		 * }
    		 * @param WP_Post|null           $post     Email post being rendered.
    		 * @param WP_Block_Template|null $template Block template being rendered.
    		 */
    		$email_context = apply_filters( 'woocommerce_email_editor_rendering_email_context', array(), $post, $template );
    		if ( ! is_array( $email_context ) ) {
    			$email_context = array();
    		}
    
    		return new Rendering_Context( $this->theme_controller->get_theme(), $email_context, $language );
    	}
    

See this hook used in plugins: