PluginProbe
Smart Grid-Layout Design for Contact Form 7 / 4.5
Smart Grid-Layout Design for Contact Form 7 v4.5
4.18.0 4.17.0 3.2.0 3.2.1 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 4.0.0 4.0.1 4.1.0 4.1.1 4.1.2 4.1.3 4.1.4 4.10 4.11 4.12 4.13 4.14 All 119 releases
← All changes | includes/class-cf7-grid-layout.php +25 -1 3.3.44.5 View file →
@@ -133,8 +133,13 @@
133 133 * The class responsible for defining all actions that occur in the admin area.
134 134 */
135 135 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'admin/class-cf7-grid-layout-admin.php';
136 136 require_once plugin_dir_path( dirname( __FILE__ ) ) . 'assets/cf7-admin-table/cf7-admin-table-loader.php';
137 + /**
138 + * Persist admin notices:
139 + * @since 4.0.2
140 + */
141 + require_once plugin_dir_path( dirname( __FILE__ ) ) . '/assets/persist-admin-notices/persist-admin-notices-dismissal.php';
137 142 /**
138 143 * The class responsible for defining all actions that occur in the public-facing
139 144 * side of the site.
140 145 */
@@ -191,8 +196,10 @@
191 196 $this->loader->add_action( 'add_meta_boxes', $plugin_admin, 'info_meta_box' );
192 197 $this->loader->add_action( 'add_meta_boxes', $plugin_admin, 'helper_meta_box');
193 198 //save the post
194 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');
195 202 //ajax load cf7 form content
196 203 $this->loader->add_action('wp_ajax_get_cf7_content', $plugin_admin, 'get_cf7_content');
197 204 //hook for adding fields to sumit action metabox
198 205 $this->loader->add_filter('post_submitbox_misc_actions', $plugin_admin, 'cf7_post_submit_action' ,10);
@@ -228,9 +235,22 @@
228 235 //add all form capabilities to editor role.
229 236 $this->loader->add_action( 'admin_init', $plugin_admin, 'enable_cf7_editor_role', 5,0 );
230 237 /** @since 3.3.0 helper hooks added via action hook */
231 238 $this->loader->add_action( 'cf7sg_ui_grid_helper_hooks', $plugin_admin, 'print_helper_hooks');
232 -
239 + /** @since 4.0.0 include default js template */
240 + $this->loader->add_action( 'cf7sg_default_custom_js_template', $plugin_admin, 'print_default_js', 1,1);
241 + /** @since 4.0.0 enable toggle mail tags */
242 + $this->loader->add_filter( 'wpcf7_collect_mail_tags', $plugin_admin, 'setup_cf7_mailtags');
243 + /** persist admin notices plugin. @since 4.1.0 */
244 + $this->loader->add_action( 'admin_init', 'PAnD', 'init' );
245 + $this->loader->add_action( 'admin_init', $plugin_admin, 'init_notices' );
246 + $this->loader->add_action( 'admin_notices', $plugin_admin, 'admin_notices' );
247 + $this->loader->add_action('wp_ajax_validate_cf7sg_version_update', $plugin_admin, 'validate_cf7sg_version_update');
248 + $this->loader->add_filter('upgrader_post_install', $plugin_admin, 'post_plugin_upgrade',10,3);
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');
233 253 }
234 254
235 255 /**
236 256 * Register all of the hooks related to the public-facing functionality
@@ -281,8 +301,12 @@
281 301 *@since 1.1.0 */
282 302 $this->loader->add_action('cf7_2_post_form_posted', $plugin_public, 'save_toggle_status', 10, 5 );
283 303 /** @since 2.4.1 attache array file fields to mails */
284 304 $this->loader->add_filter( 'wpcf7_mail_components', $plugin_public, 'wpcf7_mail_components' , 999,3);
305 + /** @since 4.0.0 enable/disable autop with filter */
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');
285 309
286 310 }
287 311
288 312 /**