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

PluginRolePrefix
North Shipping Manager (free, WordPress.org)Books Sendify shipping from the WooCommerce order, labels, tracking and customer emailsnorth_shipping_manager_
North Shipping Manager Premium (add-on)Unlocks the Plus and Pro tiers: customs, bulk booking, tracking page, SMS and morenorth_shipping_manager_
North Return Manager (free, WordPress.org)Return portal, return cases, refunds, exchange and store credit. Works with any shipping setupnorth_return_manager_
North Packing Slips & Invoices (free)Packing slips and invoices from the order listprint_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

Settings in wp-config.php

ConstantPluginEffect
NORTH_SHIPPING_MANAGER_API_KEYShipping ManagerReads 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_DATAReturn ManagerWhen 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 fires print_packing_slips_invoices_loaded. For North Shipping Manager, use plugins_loaded with 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.