| @@ -196,8 +196,10 @@ | ||
| 196 | 196 | $this->loader->add_action( 'add_meta_boxes', $plugin_admin, 'info_meta_box' ); |
| 197 | 197 | $this->loader->add_action( 'add_meta_boxes', $plugin_admin, 'helper_meta_box'); |
| 198 | 198 | //save the post |
| 199 | 199 | $this->loader->add_action('save_post_wpcf7_contact_form', $plugin_admin, 'save_post', 10,3); |
| 200 | + /** delete post @since 4.3.0 */ | |
| 201 | + $this->loader->add_action('before_delete_post', $plugin_admin, 'delete_post'); | |
| 200 | 202 | //ajax load cf7 form content |
| 201 | 203 | $this->loader->add_action('wp_ajax_get_cf7_content', $plugin_admin, 'get_cf7_content'); |
| 202 | 204 | //hook for adding fields to sumit action metabox |
| 203 | 205 | $this->loader->add_filter('post_submitbox_misc_actions', $plugin_admin, 'cf7_post_submit_action' ,10); |
| @@ -243,9 +245,12 @@ | ||
| 243 | 245 | $this->loader->add_action( 'admin_init', $plugin_admin, 'init_notices' ); |
| 244 | 246 | $this->loader->add_action( 'admin_notices', $plugin_admin, 'admin_notices' ); |
| 245 | 247 | $this->loader->add_action('wp_ajax_validate_cf7sg_version_update', $plugin_admin, 'validate_cf7sg_version_update'); |
| 246 | 248 | $this->loader->add_filter('upgrader_post_install', $plugin_admin, 'post_plugin_upgrade',10,3); |
| 247 | - | |
| 249 | + /** @since 4.3.0 enable previews/views of forms */ | |
| 250 | + $this->loader->add_action( 'init', $plugin_admin, 'register_form_preview_posttype', 0 ); | |
| 251 | + /** @since 4.4 load translation files */ | |
| 252 | + $this->loader->add_action( 'cf7pll_load_plugin_translation_resource', $plugin_admin, 'load_translation_files'); | |
| 248 | 253 | } |
| 249 | 254 | |
| 250 | 255 | /** |
| 251 | 256 | * Register all of the hooks related to the public-facing functionality |
| @@ -298,8 +303,10 @@ | ||
| 298 | 303 | /** @since 2.4.1 attache array file fields to mails */ |
| 299 | 304 | $this->loader->add_filter( 'wpcf7_mail_components', $plugin_public, 'wpcf7_mail_components' , 999,3); |
| 300 | 305 | /** @since 4.0.0 enable/disable autop with filter */ |
| 301 | 306 | $this->loader->add_filter( 'wpcf7_autop_or_not', $plugin_public, 'disable_autop_for_grid' ,5,1); |
| 307 | + /** @since 4.4 prefill preview forms */ | |
| 308 | + $this->loader->add_action( 'wpcf7_before_send_mail', $plugin_public, 'prefill_preview_forms'); | |
| 302 | 309 | |
| 303 | 310 | } |
| 304 | 311 | |
| 305 | 312 | /** |