Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_action( 'wp_enqueue_scripts', 'custom_wpgenie_denqueue_script' , 99 );
- function custom_wpgenie_denqueue_script(){
- if ( is_product() ) {
- global $product;
- if ($product->get_type() == 'auction' ) {
- wp_dequeue_script( 'shoptimizer-quantity');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement