woocommerce_shipping_calculator_enable_city

woocommerce_shipping_calculator_enable_city

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_shipping_calculator_enable_city') is found 1 times:

  • /templates/cart/shipping-calculator.php line 77
    				?>
    			</p>
    		<?php endif; ?>
    
    		<?php if ( apply_filters( 'woocommerce_shipping_calculator_enable_city', true ) ) : ?>
    			<p class="form-row form-row-wide" id="calc_shipping_city_field">
    				<label for="calc_shipping_city" class="screen-reader-text"><?php esc_html_e( 'City:', 'woocommerce' ); ?></label>
    				<input type="text" class="input-text" value="<?php echo esc_attr( WC()->customer->get_shipping_city() ); ?>" placeholder="<?php esc_attr_e( 'City', 'woocommerce' ); ?>" name="calc_shipping_city" id="calc_shipping_city" />
    			</p>
    		<?php endif; ?>
    
    

Examples using woocommerce_shipping_calculator_enable_city