woocommerce_evaluate_shipping_cost_args

woocommerce_evaluate_shipping_cost_args

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

See hook in core

Displaying hooks found in version: woocommerce.9.8.1

apply_filters('woocommerce_evaluate_shipping_cost_args') is found 1 times:

  • /includes/shipping/flat-rate/class-wc-shipping-flat-rate.php line 84
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    include_once WC()->plugin_path() . '/includes/libraries/class-wc-eval-math.php';
     
    // Allow 3rd parties to process shipping cost arguments.
    $args           = apply_filters( 'woocommerce_evaluate_shipping_cost_args', $args, $sum, $this );
    $locale         = localeconv();
    $decimals       = array( wc_get_price_decimal_separator(), $locale['decimal_point'], $locale['mon_decimal_point'], ',' );
    $this->fee_cost = $args['cost'];
     
    // Expand shortcodes.
    add_shortcode( 'fee', array( $this, 'fee' ) );