Skip to content

Hooks for developers

Filters, actions and meta keys of Courier Center Voucher for developers: version button, window fields and actions after version.

Applies to v2.1.5 Updated 4 Nov 2026 1 min read Step 14 of 15
v2.1.5 · WooCommerce 8.2+ · PHP 7.2+ Buy Support

Put your own code in Child theme or your own small plugin, not into the plugin.

Filters#

  • obs_courier_obs_courier_center_show_generate_voucher_button ($show, $order): hide the issue button according to your own rules.
  • obs_courier_obs_courier_center_create_voucher_button_text ($text): the button label.
  • obs_courier_obs_courier_center_deleting_voucher ($voucher_number, $order): the voucher number before cancellation.

Actions#

  • obs_courier_obs_courier_center_voucher_created ($order, $voucher_number, $result): after issue.
  • obs_courier_obs_courier_center_voucher_deleted ($order, $voucher_number): after cancellation.
  • obs_courier_obs_courier_center_create_voucher_modal ($order): extra fields in the dialog. The plugin uses it for Choose Account.
  • obs_courier_obs_courier_center_admin_page_before_settings and …_after_settings: content above or below the settings.

Meta keys of the order#

  • obs_courier_center: the Voucher number.
  • obs_courier_center_pieces: the parcels.

Version and cancellation errors are written in WooCommerce logs with source obs_courier_center.

Did this article help you?
It's not solved?

Send a request; the plugin and the article are automatically completed.

Request support