Smart Send module for WooCommerce
Wordpress Plugin releases are managed by SVN and to sync the plugin to a local folder run:
svn co https://plugins.svn.wordpress.org/smart-send-logistics smart-send-logistics
To release a new version of the plugin:
Version
:
smart-send-logistics/smart-send-logistics.php
: Headersmart-send-logistics/smart-send-logistics.php
: private property $version
smart-send-logistics/readme.txt
: Stable tag-tagsmart-send-logistics/readme.txt
smart-send-logistics
to the trunk
svn foldertrunk
folder content to a new tagged release using the command svn cp trunk tags/8.0.0
(replace 8.0.0
with the new version number)svn ci -m "tagging version 8.0.0"
Note that the following command can be used to check which files are modified/added/deleted:
svn stat
To create a plugin zip file of a given branch/tag use:
git archive v8.1.0b4 --output="smart-send-shipping-woocommerce-v810b4.zip" "smart-send-logistics"
When developing then it can sometimes be relevant to use Smart Send's development environment. This is done by implementing the following filter:
function smart_send_api_endpoint_callback( $endpoint ) {
if ($endpoint == 'https://app.smartsend.io/api/v1/') {
$endpoint = 'https://app.smartsend.dev/api/v1/';
}
return $endpoint;
}
add_filter( 'smart_send_api_endpoint', 'smart_send_api_endpoint_callback' );
An easy way to implement this is using the Code Snippets plugin and select Run snippet everywhere