frontend->get_builder_content_for_display( (int) $checkout_id, true ); return ob_get_clean(); }, 5 ); // Set sellkit canvas templates as the page template. add_action( 'template_redirect', function() { sellkit()->load_files( [ 'templates/canvas' ] ); exit; } ); add_filter( 'sellkit_global_checkout_activated', function() { return true; } ); add_action( 'sellkit_checkout_required_hidden_fields', function() use ( $checkout_id ) { ?> cart->add_discount( get_the_title( $auto_apply_coupon['value'] ) ); } wc_clear_notices(); } } } new Checkout();