array( 'priority' => 10, 'js' => array( '.woocommerce-product-gallery figure', 'append' ) ) ); $hooks['on_image']['single']['woodmart_on_product_image'] = array( 'priority' => 10 ); return $hooks; } /* * Hide default sale flash if this option is enables */ public function hide_default_sale_flash() { add_filter( 'woodmart_product_label_output', array( $this, 'hide_sale_flash' ), 10, 1 ); } public function hide_sale_flash( $output ) { $output = str_replace( 'span class="onsale product-label"', 'span style="display:none;" class="onsale product-label"', $output ); return $output; } } endif; AWL_Woodmart::instance();