woocommerce_get_default_value_for_{$key}
woocommerce_get_default_value_for_{$key}
Appears in: woocommerce.8.9.2, woocommerce.8.9.3, woocommerce.9.0.2, woocommerce.9.1.2, woocommerce.9.1.4, woocommerce.9.2.2, woocommerce.9.2.3, woocommerce.9.3.1
Hook Type: filter
Displaying hooks found in version: woocommerce.9.3.1apply_filters('woocommerce_get_default_value_for_{$key}') is found 1 times:
- /src/Blocks/Domain/Services/CheckoutFields.php line 1135
* @param WC_Data $wc_object The object to get the field value for. * * @since 8.9.0 */ $value = apply_filters( "woocommerce_get_default_value_for_{$key}", null, $group, $wc_object ); } // We cast the value to a boolean if the field is a checkbox. if ( $this->is_field( $key ) && 'checkbox' === $this->additional_fields[ $key ]['type'] ) { return '1' === $value; }