Skip to content

Instantly share code, notes, and snippets.

@bporcelli
Last active March 20, 2019 19:36
Show Gist options
  • Select an option

  • Save bporcelli/c516a2a741c0c2a968f2 to your computer and use it in GitHub Desktop.

Select an option

Save bporcelli/c516a2a741c0c2a968f2 to your computer and use it in GitHub Desktop.
Shows how to register a custom pickup shipping method using the wootax_local_pickup_methods filter.
/**
* Register the Local Pickup Plus method with WooTax
*/
function wootax_add_local_pickup_method( $methods ) {
$methods[] = 'local_pickup_plus'; // Detected on frontend
$methods[] = 'Local Pickup Plus'; // Detected on backend
return $methods;
}
add_filter( 'wootax_local_pickup_methods', 'wootax_add_local_pickup_method', 10, 1 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment