Hooks for developers
Filters, actions and meta keys of Courier Center Voucher for developers: version button, window fields and actions after version.
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_settingsand…_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.
It's not solved?
Request support
Send a request; the plugin and the article are automatically completed.