Actions and Filters

  1. Change the banner position on the product page

Code:

/* Product page banner hook */ 
function product_page_banner_filter_custom( $default_variation_flag ) {

  return 'woocommerce_single_product_summary';
}
add_filter( 'product_page_banner_filter', 'product_page_banner_filter_custom', 10,1 );
Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.