Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Update remove_shipping_settings docblock to accurately describe its p…
Browse files Browse the repository at this point in the history
…urpose.
  • Loading branch information
mikejolley committed Oct 24, 2023
1 parent 044efda commit 71c5ea8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Shipping/ShippingController.php
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,10 @@ public function show_local_pickup_details( $return, $order ) {
}

/**
* If the Checkout block Remove shipping settings from WC Core's admin panels that are now block settings.
* When using the cart and checkout blocks this method is used to adjust core shipping settings via a filter hook.
*
* @param array $settings The default WC shipping settings.
* @return array|mixed The filtered settings with relevant items removed.
* @return array|mixed The filtered settings.
*/
public function remove_shipping_settings( $settings ) {
if ( CartCheckoutUtils::is_checkout_block_default() && $this->local_pickup_enabled ) {
Expand Down

0 comments on commit 71c5ea8

Please sign in to comment.