Regenerate_Order_Attendees::hook()
Register services.
Source
File: src/Tribe/Commerce/WooCommerce/Regenerate_Order_Attendees.php
public function hook() {
// Register the action for the Edit order screen.
add_filter( 'woocommerce_order_actions', [ $this, 'add_single_order_action' ] );
// Register the bulk action for the Orders screen.
add_filter( 'bulk_actions-edit-shop_order', [ $this, 'add_bulk_order_action' ] );
// Handler action for order edit screen.
add_action( 'woocommerce_order_action_' . $this->action_slug, [ $this, 'regenerate_attendees' ] );
// Handle bulk action for order list.
add_filter( 'handle_bulk_actions-edit-shop_order', [ $this, 'bulk_handler_for_attendee_regeneration' ], 9, 3 );
// Show bulk order update confirmation.
add_action( 'admin_notices', [ $this, 'display_bulk_action_confirmation_notice' ] );
}
Changelog
| Version | Description |
|---|---|
| 5.2.7 | Introduced. |