woocommerce_get_default_value_for_{$key}

woocommerce_get_default_value_for_{$key}

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.3.1

apply_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;
    		}