woocommerce_ship_to_different_address_checked
Использование
add_filter( 'woocommerce_ship_to_different_address_checked', 'wp_kama_woocommerce_ship_to_different_address_checked_filter' ); /** * Function for `woocommerce_ship_to_different_address_checked` filter-hook. * * @param $1 * * @return */ function wp_kama_woocommerce_ship_to_different_address_checked_filter( $1 ){ // filter... return $1; }
- $1
- -
Где вызывается хук
woocommerce_ship_to_different_address_checked
woocommerce/templates/checkout/form-shipping.php 26
<input id="ship-to-different-address-checkbox" class="woocommerce-form__input woocommerce-form__input-checkbox input-checkbox" <?php checked( apply_filters( 'woocommerce_ship_to_different_address_checked', 'shipping' === get_option( 'woocommerce_ship_to_destination' ) ? 1 : 0 ), 1 ); ?> type="checkbox" name="ship_to_different_address" value="1" /> <span><?php esc_html_e( 'Ship to a different address?', 'woocommerce' ); ?></span>