| @@ -215,10 +215,19 @@ | ||
| 215 | 215 | add_filter('gform_entry_field_value', array($this, 'filter_gform_entry_field_value'), 10, 4); |
| 216 | 216 | add_filter('gform_merge_tag_filter', array($this, 'filter_gform_merge_tag_filter'), 10, 5); |
| 217 | 217 | add_filter('gform_entries_field_value', array($this, 'filter_gform_entries_field_value'), 10, 4); |
| 218 | 218 | |
| 219 | - /* Hooks */ | |
| 219 | + // hooks | |
| 220 | 220 | add_filter('gform_entry_detail_meta_boxes', array($this, 'hook_gravity_entry_view'), 10, 3); |
| 221 | + | |
| 222 | + // extension hooks | |
| 223 | + add_filter('e2pdf_extension_hooks', function ($hooks) { | |
| 224 | + $hooks[$this->info['key']] = [ | |
| 225 | + 'hook_gravity_entry_view' => __('WP Admin Entry View', 'e2pdf'), | |
| 226 | + 'hook_gravity_row_actions' => __('WP Admin Entry Row Actions', 'e2pdf') | |
| 227 | + ]; | |
| 228 | + return $hooks; | |
| 229 | + }); | |
| 221 | 230 | } |
| 222 | 231 | |
| 223 | 232 | // render shortcodes |
| 224 | 233 | public function render_shortcodes($value, $field = array()) { |