Ordexa Staff Access for WooCommerce

Description

Do you run a store where support or warehouse staff can edit orders, but should never change store settings? Then you probably gave them a custom role with order capabilities (edit_shop_orders, edit_others_shop_orders, read_shop_order) and left out manage_woocommerce. That is the right way to do it, but WooCommerce then fills your server logs with errors.

The problem: every time such a user opens the Orders list or an order screen, WooCommerce’s own admin scripts ask /wp-json/wc-admin/options for a few internal options. That route needs manage_woocommerce, so it answers 403 Forbidden. Order handling still works, but you get hundreds of error lines a day, red errors in the browser console, and noise that can trip firewalls and monitoring.

The fix: this plugin answers those few harmless, read-only requests for order-only staff, so the 403 errors stop. Nothing else changes.

What you get

  • No more 403 errors on /wc-admin/options for order-only staff.
  • Staff keep their limited role. They do not get manage_woocommerce and still cannot open WooCommerce settings.
  • Works with custom roles built with plugins such as Members or User Role Editor.
  • Safe by design: a short allowlist, read-only requests only, and empty placeholder answers instead of real option values.
  • Clear settings page that shows whether the fix is active and which roles it covers.
  • Steps aside automatically if a future WooCommerce version already allows the request.
  • No external services, no tracking, no ads.

How it works

The plugin answers a request only when all of these are true:

  • it is a GET request to /wc-admin/options;
  • the user is logged in, does not have manage_woocommerce, and has at least one configured order capability (by default edit_shop_orders or read_shop_order);
  • every option name in the request is on the allowlist (by default woocommerce_ces_tracks_queue, woocommerce_admin_transient_notices_queue and woocommerce_admin_install_timestamp);
  • WooCommerce itself would still refuse the request.

Allowed options are answered with empty placeholder values. Real option values are never returned, no permissions are granted, and write requests are never touched.

Compatibility

  • WooCommerce High-Performance Order Storage (HPOS) and the Cart and Checkout Blocks: compatible and declared. The plugin does not read or write orders and does not touch the cart or checkout.
  • Multisite: works, including network activation. Settings are stored per site.
  • Requires WooCommerce to be active.

Credits

Screenshots

Installation

  1. Upload the plugin folder to /wp-content/plugins/, or install it from the Plugins screen in WordPress.
  2. Activate the plugin. The defaults work without any configuration.
  3. Optional: open Settings > Ordexa Staff Access to see which roles are covered, or to change the capability list or the allowlist.
  4. Log in as an order-only staff user, open WooCommerce > Orders, and check that the 403 responses to /wp-json/wc-admin/options are gone.

FAQ

Why do my order-only staff get a 403 on /wc-admin/options?

WooCommerce lets users with order capabilities (such as edit_shop_orders) open the Orders list and the order edit screen. The scripts on those screens then request /wp-json/wc-admin/options?options=woocommerce_ces_tracks_queue and similar, and that route only allows users with manage_woocommerce. So the same user is allowed onto the screen, but not allowed to read the data the screen asks for. This plugin closes that gap for a short list of harmless options.

Order handling works fine. Why does this matter?

Order handling is not affected, but the failed requests are logged on every page load. One reported store saw about 200 errors a day from its customer service staff. That noise hides real problems and can trigger firewall, rate limit or monitoring alerts.

Does this make my staff shop managers or give them manage_woocommerce?

No. Staff keep exactly the permissions they had. They still cannot open WooCommerce settings or change store options.

Are those options really harmless?

The default allowlist contains three internal options: a survey tracking queue, a notices queue and an install timestamp. The plugin does not even return their real values. It answers with empty placeholders, which is all the order screens need to stop failing.

Does it work with a role created with the Members plugin?

Yes. The plugin checks capabilities, not role names, so it works with roles made by Members, User Role Editor or any other role plugin. By default a user is covered if they have edit_shop_orders or read_shop_order and do not have manage_woocommerce. You can change the capability list in the settings.

Does it work with HPOS (High-Performance Order Storage)?

Yes. The reported problem happens with HPOS enabled, and the plugin is compatible with it. It does not read or write order data.

Does it work with the Cart and Checkout Blocks?

Yes. The plugin only deals with an admin REST route and does not touch the cart or checkout. Compatibility with the Cart and Checkout Blocks is declared.

Will WooCommerce fix this itself?

Possibly. WooCommerce could either stop requesting these options for users without manage_woocommerce, or allow these harmless options for users who can open the order screens. If WooCommerce starts allowing the request, this plugin does nothing and you can remove it.

I still see a 403 for a different option. What do I do?

Open Settings > Ordexa Staff Access and add the option name to the allowlist, one per line. A request is answered only if every option in it is on the list, so a request that mixes an allowed option with an unlisted one still gets WooCommerce’s normal answer. Only add harmless, internal options.

How can I check that it works?

Create a role with read, edit_shop_orders, edit_others_shop_orders and read_shop_order (and no manage_woocommerce), log in as a user with that role, open WooCommerce > Orders and then an order, and look at the browser console or your server log. The 403 responses to /wp-json/wc-admin/options should be gone.

Does it work on multisite?

Yes. You can network activate it. Settings are stored per site and are removed from every site when the plugin is deleted.

Does it send any data anywhere?

No. The plugin makes no external requests, loads no remote code, stores no personal data and keeps one settings option in your database.

Reviews

There are no reviews for this plugin.

Contributors & Developers

“Ordexa Staff Access for WooCommerce” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

1.0.1

  • Plugin slug and text domain are now ordexa-staff-access-for-woocommerce, as requested by the Plugins Team, so translations work through wordpress.org.
  • Renamed the denied request log screen to match the plugin name.

1.0.0

  • First release.
  • Stops 403 errors on GET /wc-admin/options for order-only staff without manage_woocommerce.
  • Strict allowlist, read-only, with empty placeholder answers and no permission changes.
  • Settings page with status box, covered roles, help text, Help tab and Restore defaults.
  • Compatible with HPOS and the Cart and Checkout Blocks, and works on multisite.