Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save AnanthFlycart/2d09f6b8e55cc18fbcec57af5a996422 to your computer and use it in GitHub Desktop.
Save AnanthFlycart/2d09f6b8e55cc18fbcec57af5a996422 to your computer and use it in GitHub Desktop.
CUW: Load more offer display locations
add_filter('cuw_offer_display_locations', function($locations) {
return array_merge($locations, [
'woocommerce_before_checkout_form' => esc_html__("Before checkout form", 'checkout-upsell-woocommerce'),
'woocommerce_after_checkout_form' => esc_html__("After checkout form", 'checkout-upsell-woocommerce'),
'woocommerce_checkout_before_customer_details' => esc_html__("Before customer details", 'checkout-upsell-woocommerce'),
'woocommerce_checkout_after_customer_details' => esc_html__("After customer details", 'checkout-upsell-woocommerce'),
'woocommerce_checkout_billing' => esc_html__("Before Billing", 'checkout-upsell-woocommerce'),
'woocommerce_before_checkout_billing_form' => esc_html__("Before Billing fields", 'checkout-upsell-woocommerce'),
'woocommerce_after_checkout_billing_form' => esc_html__("After Billing fields", 'checkout-upsell-woocommerce'),
'woocommerce_checkout_shipping' => esc_html__("Before Shipping", 'checkout-upsell-woocommerce'),
'woocommerce_before_checkout_shipping_form' => esc_html__("Before Shipping fields", 'checkout-upsell-woocommerce'),
'woocommerce_after_checkout_shipping_form' => esc_html__("After Shipping fields", 'checkout-upsell-woocommerce'),
'woocommerce_before_order_notes' => esc_html__("Before Order notes", 'checkout-upsell-woocommerce'),
'woocommerce_after_order_notes' => esc_html__("After Order notes", 'checkout-upsell-woocommerce'),
'woocommerce_checkout_before_order_review_heading' => esc_html__("Before Order review heading", 'checkout-upsell-woocommerce'),
'woocommerce_checkout_before_order_review' => esc_html__("Before Order review", 'checkout-upsell-woocommerce'),
'woocommerce_checkout_after_order_review' => esc_html__("After Order review", 'checkout-upsell-woocommerce'),
]);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment