| @@ -152,8 +152,18 @@ | ||
| 152 | 152 | // load filters |
| 153 | 153 | public function load_filters() { |
| 154 | 154 | add_filter('post_row_actions', array($this, 'hook_metform_row_actions'), 10, 2); |
| 155 | 155 | add_filter('manage_metform-entry_posts_columns', array($this, 'hook_metform_entry_row_column'), 11); |
| 156 | + | |
| 157 | + // extension hooks | |
| 158 | + add_filter('e2pdf_extension_hooks', function ($hooks) { | |
| 159 | + $hooks[$this->info['key']] = [ | |
| 160 | + 'hook_metform_entry_view' => __('WP Admin Entry View', 'e2pdf'), | |
| 161 | + 'hook_metform_row_actions' => __('WP Admin Entry Row Actions', 'e2pdf'), | |
| 162 | + 'hook_metform_entry_row_column' => __('WP Admin Entry List Column', 'e2pdf') | |
| 163 | + ]; | |
| 164 | + return $hooks; | |
| 165 | + }); | |
| 156 | 166 | } |
| 157 | 167 | |
| 158 | 168 | // items |
| 159 | 169 | public function items() { |