Last active
October 27, 2023 08:58
-
-
Save webdados/5f8ac882021e7ede6839906a662309fc to your computer and use it in GitHub Desktop.
Add a new service to the DPD Portugal for WooCommerce plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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