| @@ -394,8 +394,18 @@ | ||
| 394 | 394 | add_filter('wpforms_process_smart_tags', array(new Model_E2pdf_Filter(), 'filter'), 999); |
| 395 | 395 | |
| 396 | 396 | // hooks |
| 397 | 397 | add_filter('wpforms_entry_table_actions', array($this, 'hook_wpforms_row_actions'), 10, 2); |
| 398 | + | |
| 399 | + // extension hooks | |
| 400 | + add_filter('e2pdf_extension_hooks', function ($hooks) { | |
| 401 | + $hooks[$this->info['key']] = [ | |
| 402 | + 'hook_wpforms_entry_view' => __('WP Admin Entry View', 'e2pdf'), | |
| 403 | + 'hook_wpforms_entry_edit' => __('WP Admin Entry Edit', 'e2pdf'), | |
| 404 | + 'hook_wpforms_row_actions' => __('WP Admin Entry Row Actions', 'e2pdf') | |
| 405 | + ]; | |
| 406 | + return $hooks; | |
| 407 | + }); | |
| 398 | 408 | } |
| 399 | 409 | |
| 400 | 410 | // frontend confirmation message filter |
| 401 | 411 | public function filter_wpforms_frontend_confirmation_message($message, $form_data, $fields, $dataset) { |