/** * Adds shop address to the Local pickup on the checkout page. * * @see https://wpcodebook.com/woocommerce-add-address-local-pickup-checkout/ * @see https://github.com/woocommerce/woocommerce/blob/9.3.3/plugins/woocommerce/includes/wc-cart-functions.php#L394 */ add_filter( 'woocommerce_cart_shipping_method_full_label', function ( $label, $method ) { if ( is_checkout() && 'local_pickup' === $method->method_id ) { $label .= '<p>Pick up at <strong>One Apple Park Way, Cupertino, California</strong>.</p>'; } return $label; }, PHP_INT_MAX, 2 );