| @@ -124,8 +124,16 @@ | ||
| 124 | 124 | add_filter('jet-form-builder/content-filters', array($this, 'filter_jet_form_builder_content_filter')); |
| 125 | 125 | |
| 126 | 126 | // hooks |
| 127 | 127 | add_filter('jet-form-builder/page-containers/jfb-records-single', array($this, 'hook_jetformbuilder_entry_view')); |
| 128 | + | |
| 129 | + // extension hooks | |
| 130 | + add_filter('e2pdf_extension_hooks', function ($hooks) { | |
| 131 | + $hooks[$this->info['key']] = [ | |
| 132 | + 'hook_jetformbuilder_entry_view' => __('WP Admin Entry View', 'e2pdf') | |
| 133 | + ]; | |
| 134 | + return $hooks; | |
| 135 | + }); | |
| 128 | 136 | } |
| 129 | 137 | |
| 130 | 138 | public function filter_wp_kses_allowed_html($html, $context) { |
| 131 | 139 | if (is_array($context)) { |