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:
- Update all mentions of the
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-tag
- Add changelog entry in
smart-send-logistics/readme.txt
- Copy folder
smart-send-logistics
to thetrunk
svn folder - Copy the
trunk
folder content to a new tagged release using the commandsvn cp trunk tags/8.0.0
(replace8.0.0
with the new version number) - Commit the work using the command
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