woocommerce_rate_compound

woocommerce_rate_compound

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.3

apply_filters('woocommerce_rate_compound') is found 1 times:

  • /includes/class-wc-tax.php line 659
    			$key      = $key_or_rate;
    			$compound = (bool) $wpdb->get_var( $wpdb->prepare( "SELECT tax_rate_compound FROM {$wpdb->prefix}woocommerce_tax_rates WHERE tax_rate_id = %s", $key ) );
    		}
    
    		return (bool) apply_filters( 'woocommerce_rate_compound', $compound, $key );
    	}
    
    	/**
    	 * Return a given rates label.
    	 *
    	 * @param mixed $key_or_rate Tax rate ID, or the db row itself in object format.