WordPress at Your Fingertips
function is not described

WC_Tax::find_shipping_rates() public WC 1.0

Searches for all matching country/state/postcode tax rates.

{} It's a method of the class: WC_Tax{}

No Hooks.

Return

Array.

Usage

$result = WC_Tax::find_shipping_rates( $args );
$args(array)
Args that determine the rate to find.
Default: array()

Code of WC_Tax::find_shipping_rates() WC 5.9.0

public static function find_shipping_rates( $args = array() ) {
	$rates          = self::find_rates( $args );
	$shipping_rates = array();

	if ( is_array( $rates ) ) {
		foreach ( $rates as $key => $rate ) {
			if ( 'yes' === $rate['shipping'] ) {
				$shipping_rates[ $key ] = $rate;
			}
		}
	}

	return $shipping_rates;
}