| @@ -368,8 +368,38 @@ | ||
| 368 | 368 | add_filter('woocommerce_my_account_my_orders_actions', array($this, 'filter_woocommerce_my_account_my_orders_actions'), (int) get_option('e2pdf_wc_checkout_template_id_priority', '10'), 2); |
| 369 | 369 | } |
| 370 | 370 | add_filter('e2pdf_model_options_get_options_options', array($this, 'filter_e2pdf_model_options_get_options_options')); |
| 371 | 371 | //phpcs:enable |
| 372 | + // extension hooks | |
| 373 | + add_filter('e2pdf_extension_hooks', function ($hooks) { | |
| 374 | + $hooks[$this->info['key'] . '_shop_order'] = [ | |
| 375 | + 'hook_woocommerce_order_edit' => __('WP Admin Order Details', 'e2pdf'), | |
| 376 | + 'hook_woocommerce_order_row_actions' => __('WP Admin Order List Actions', 'e2pdf'), | |
| 377 | + 'hook_woocommerce_order_row_column' => __('WP Admin Order List Column', 'e2pdf'), | |
| 378 | + 'hook_woocommerce_my_account_my_orders_actions' => __('User Order List', 'e2pdf'), | |
| 379 | + 'hook_woocommerce_order_details_before_order_table' => __('User Order Details (Before Order Table)', 'e2pdf'), | |
| 380 | + 'hook_woocommerce_order_details_before_order_table_items' => __('User Order Details (Before Order Table Items)', 'e2pdf'), | |
| 381 | + 'hook_woocommerce_order_details_after_order_table_items' => __('User Order Details (After Order Table Items)', 'e2pdf'), | |
| 382 | + 'hook_woocommerce_order_details_after_order_table' => __('User Order Details (After Order Table)', 'e2pdf'), | |
| 383 | + 'hook_woocommerce_after_order_details' => __('User Order Details (After Order Details)', 'e2pdf') | |
| 384 | + ]; | |
| 385 | + $hooks[$this->info['key'] . '_shop_subscription'] = [ | |
| 386 | + 'hook_woocommerce_subscription_edit' => __('WP Admin Subscription Details', 'e2pdf'), | |
| 387 | + 'hook_woocommerce_subscription_row_column' => __('WP Admin Order List Column', 'e2pdf'), | |
| 388 | + 'hook_woocommerce_subscription_before_actions' => __('User Subscription (Before Actions)', 'e2pdf'), | |
| 389 | + 'hook_woocommerce_subscription_after_actions' => __('User Subscription (After Actions)', 'e2pdf'), | |
| 390 | + 'hook_wcs_subscription_details_table_before_dates' => __('User Subscription (Before Dates)', 'e2pdf'), | |
| 391 | + 'hook_wcs_subscription_details_table_after_dates' => __('User Subscription (After Dates)', 'e2pdf'), | |
| 392 | + 'hook_wcs_subscription_details_table_before_payment_method' => __('User Subscription (Before Payment Method)', 'e2pdf'), | |
| 393 | + 'hook_wcs_view_subscription_actions' => __('User Subscrition (Actions)', 'e2pdf') | |
| 394 | + ]; | |
| 395 | + $hooks[$this->info['key'] . '_cart'] = [ | |
| 396 | + 'hook_woocommerce_proceed_to_checkout' => __('User Cart', 'e2pdf'), | |
| 397 | + 'hook_woocommerce_review_order_before_submit' => __('User Checkout (Before Submit)', 'e2pdf'), | |
| 398 | + 'hook_woocommerce_review_order_after_submit' => __('User Checkout (After Submit)', 'e2pdf') | |
| 399 | + ]; | |
| 400 | + return $hooks; | |
| 401 | + }); | |
| 372 | 402 | } |
| 373 | 403 | |
| 374 | 404 | // action after email |
| 375 | 405 | public function action_after_email() { |