Developer documentation
The North plugins are built to be extended. This section describes the public hooks, the return carrier interface and the settings you can set in wp-config.php. Everything listed here is a stable public API: it is kept across minor versions, and any change is announced in the changelog first.
Hooks and classes that are not listed here are internal and may change without notice.
The plugins and how they fit together
| Plugin | Role | Prefix |
|---|---|---|
| North Shipping Manager (free, WordPress.org) | Books Sendify shipping from the WooCommerce order, labels, tracking and customer emails | north_shipping_manager_ |
| North Shipping Manager Premium (add-on) | Unlocks the Plus and Pro tiers: customs, bulk booking, tracking page, SMS and more | north_shipping_manager_ |
| North Return Manager (free, WordPress.org) | Return portal, return cases, refunds, exchange and store credit. Works with any shipping setup | north_return_manager_ |
| North Packing Slips & Invoices (free) | Packing slips and invoices from the order list | print_packing_slips_invoices_ |
The plugins are independent. North Return Manager does not require North Shipping Manager. When North Return Manager and North Shipping Manager Premium are both active, the Premium add-on registers Sendify as a return carrier, so approving a return books the return shipment through Sendify. See Return carriers.
Articles in this section
- North Shipping Manager hooks: change the shipment sent to Sendify, react to tracking updates, add order actions, and receive Sendify webhooks.
- North Return Manager hooks: react to returns, change return rules and connect a custom order number scheme.
- Return carriers: connect another shipping service to North Return Manager.
- North Packing Slips & Invoices hooks: custom templates and invoice data.
Settings in wp-config.php
| Constant | Plugin | Effect |
|---|---|---|
NORTH_SHIPPING_MANAGER_API_KEY | Shipping Manager | Reads the Sendify API key from wp-config.php instead of the database. The field under Settings → Connection is then locked. |
NORTH_RETURN_MANAGER_REMOVE_ALL_DATA | Return Manager | When true, uninstalling the plugin also deletes all returns and uploaded files. By default they are kept. |
Conventions
- Requirements: WordPress 6.5+, PHP 8.0+, WooCommerce 8.5+. Compatible with WooCommerce’s order storage (HPOS).
- Order data: always read and write orders through the WooCommerce order object (
$order->get_meta()), never directly in the posts table. - Translations: English is the source language. Every string is translatable, and the plugins ship with Swedish.
- Load order: hook into a plugin only after it has loaded. North Return Manager fires
north_return_manager_loaded, and North Packing Slips & Invoices firesprint_packing_slips_invoices_loaded. For North Shipping Manager, useplugins_loadedwith a priority of 20 or later. - Privacy: the plugins never send order or customer data anywhere except to the shipping service the shop has connected. Extensions should follow the same rule.
Licence
All plugins are licensed under GPLv2 or later.
Questions
Developers and agencies are welcome to contact us at support@northcreativecollective.se. Tell us which plugin and version you are working with.
