Developer Extensibility

Extend ShopMagic for the way your WooCommerce store works

Add a trigger from your own plugin, make business data available in a message or add an action your team can reuse in the ShopMagic editor.

Turn a custom pickup location into wording customers can use

Your store keeps an internal pickup location code on each order. A developer can add a ShopMagic placeholder that turns it into the customer-facing location name for order emails.

  • Editor

    Expose the store-specific detail in the editor

    Register a custom placeholder for the data your emails need. In this example, the placeholder looks up the pickup location name using the current order.

  • Email result

    Use the result in a customer email

    Insert the placeholder in the message. When the automation runs with the relevant order data, the placeholder can display the location name customers recognize.

Extend the parts of a workflow your project needs

Add a new starting event

Register an event that responds to something your own plugin does, such as assigning an order to a pickup location. Give the event the data its filters and actions need.

  • Define a condition or a reusable action

    Add a custom filter to decide which records qualify, or register an action that carries out a task your store needs.

  • Adapt email output through hooks

    Use the relevant hooks to customize parts of message processing, attachments or templates for your project. Review the data available to that hook.

Start with the ShopMagic developer documentation

Use a separate WordPress plugin to register your ShopMagic components. Check the hooks in the ShopMagic version you deploy, then test the integration with representative data on a staging site.

Adapt familiar store workflows to custom data

  • Send product-specific purchase instructions after payment

    Use the standard workflow as a starting point. Add a custom placeholder if the store needs to compute an instruction from its own data.

  • Notify your team about orders with customer notes

    Start from the standard internal notification. Add a custom condition if a store-specific routing rule is needed.

  • Start a workflow when a pickup location is assigned

    Register an event for your pickup extension so a ShopMagic automation can act on the assigned location.

ShopMagic developer hooks FAQ

You can add custom events, filters, actions and placeholders for ShopMagic automations.

Use a separate WordPress plugin for your integration. That lets you maintain the extension independently of ShopMagic updates.

Yes, when the selected event makes the relevant order data available to the workflow. The placeholder can use that context to calculate or format a value.

Developer hooks extend workflows through PHP in WordPress. The ShopMagic Webhooks integration sends data from a workflow to a configured external endpoint.