Title: Extending orders table
Last modified: May 29, 2026

---

# Extending orders table

 *  [Luis Braschi](https://wordpress.org/support/users/casper-braske/)
 * (@casper-braske)
 * [1 week, 2 days ago](https://wordpress.org/support/topic/extending-orders-table/)
 * Hello. I have an add-on that relies on the actions column of the order tables.
   Is it possible to extend the new UI to add new actions?
   Here’s an example of 
   the old PHP-based UI. The blue/yellow buttons:[https://art-idesenvolvimento.com.br/wordpress/plugins/frete-melhor-envio-marketplace/imgs/dokan-botoes-etiquetas.png](https://art-idesenvolvimento.com.br/wordpress/plugins/frete-melhor-envio-marketplace/imgs/dokan-botoes-etiquetas.png)
    -  This topic was modified 1 week, 2 days ago by [Luis Braschi](https://wordpress.org/support/users/casper-braske/).

Viewing 1 replies (of 1 total)

 *  Plugin Support [Sazzat Hossain](https://wordpress.org/support/users/sazdhossain/)
 * (@sazdhossain)
 * [3 days ago](https://wordpress.org/support/topic/extending-orders-table/#post-18929763)
 * Hi [@casper-braske](https://wordpress.org/support/users/casper-braske/),
 * Thanks for reaching out.
 * Our developer shared a clue on how a similar integration was implemented for 
   the Dokan PDF Invoice plugin when adapting order actions to the new UI.
 * The implementation can be reviewed in this pull request: [https://github.com/getdokan/dokan/pull/34](https://github.com/getdokan/dokan/pull/34)
 * You may find it helpful to review the PR itself, especially the **Files changed**
   tab, to see exactly how the custom order actions were added and wired into the
   new UI.
 * In summary, the solution consists of two parts:
    1. **PHP** – Use the `dokan_rest_prepare_shop_order_object` filter to add your 
       custom action data to the order REST response. For example, add a URL under 
       a unique key within the `actions` array. Be sure to merge with existing actions
       rather than overwrite them.
    2. **JavaScript** – Use the `dokan_orders_data_view_dataviews_actions` filter (
       via `wp.hooks`) to register a corresponding DataViews action. The JS action 
       key should match the key added in PHP and can then perform the desired action(
       for example, opening a URL in a new tab).
 * The important thing to note is that the new DataViews-based UI only has access
   to data exposed through the REST response, so custom actions need to be added
   to the REST payload first and then registered on the JavaScript side.
 * The PDF Invoice integration uses this exact pattern to add its “View Invoice”
   and “View Packing Slip” actions, and it should serve as a useful reference for
   implementing similar custom actions in your own integration.
 * Hope this helps!

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fextending-orders-table%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/dokan-lite/assets/icon-256x256.gif?rev=3239229)
 * [Dokan: AI Powered WooCommerce Multivendor Marketplace Solution – Build Your Own Amazon, eBay, Etsy](https://wordpress.org/plugins/dokan-lite/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/dokan-lite/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/dokan-lite/)
 * [Active Topics](https://wordpress.org/support/plugin/dokan-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/dokan-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/dokan-lite/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Sazzat Hossain](https://wordpress.org/support/users/sazdhossain/)
 * Last activity: [3 days ago](https://wordpress.org/support/topic/extending-orders-table/#post-18929763)
 * Status: not resolved