woocommerce_shipping_calculator_enable_country

woocommerce_shipping_calculator_enable_country

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_shipping_calculator_enable_country') is found 1 times:

  • /templates/cart/shipping-calculator.php line 28
    	<?php printf( '<a href="#" class="shipping-calculator-button">%s</a>', esc_html( ! empty( $button_text ) ? $button_text : __( 'Calculate shipping', 'woocommerce' ) ) ); ?>
    
    	<section class="shipping-calculator-form" style="display:none;">
    
    		<?php if ( apply_filters( 'woocommerce_shipping_calculator_enable_country', true ) ) : ?>
    			<p class="form-row form-row-wide" id="calc_shipping_country_field">
    				<label for="calc_shipping_country" class="screen-reader-text"><?php esc_html_e( 'Country / region:', 'woocommerce' ); ?></label>
    				<select name="calc_shipping_country" id="calc_shipping_country" class="country_to_state country_select" rel="calc_shipping_state">
    					<option value="default"><?php esc_html_e( 'Select a country / region&hellip;', 'woocommerce' ); ?></option>
    					<?php
    					foreach ( WC()->countries->get_shipping_countries() as $key => $value ) {