add-to-cart-form-shortcode icon indicating copy to clipboard operation
add-to-cart-form-shortcode copied to clipboard

Detect current page query from inside the shortcode.

Open helgatheviking opened this issue 2 years ago • 0 comments

We are intentionally killing the current $wp_query here but that means that we have no way to detect what page we're currently on when we are inside the shortcode... making any conditional logic (like is_checkout()) impossible.

helgatheviking avatar Jan 25 '23 18:01 helgatheviking