Skip to content

Instantly share code, notes, and snippets.

@webdados
Last active October 27, 2023 08:58
Show Gist options
  • Save webdados/5f8ac882021e7ede6839906a662309fc to your computer and use it in GitHub Desktop.
Save webdados/5f8ac882021e7ede6839906a662309fc to your computer and use it in GitHub Desktop.
Add a new service to the DPD Portugal for WooCommerce plugin
<?php
add_filter( 'woo_dpd_portugal_available_services', function( $services ) {
$services['custom_xpto'] = 'XPTO Service';
$services['custom_abcd'] = 'ABCD Service';
return $services;
} );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment