PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.22.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.22.1
6.35 6.34 6.33.1 6.33 6.32.1 6.32 6.31 6.25 6.25.1 6.26 6.26.1 6.27 6.28 6.29 6.3 6.3.1 6.3.2 6.30 6.4 6.4.1 6.4.2 6.5 6.5.1 6.5.2 6.5.3 All 141 releases
← All changes | classes/controllers/FrmHooksController.php +7 -45 6.356.22.1 View file →
@@ -12,16 +12,16 @@
12 12 *
13 13 * @return void
14 14 */
15 15 public static function trigger_load_hook( $hooks = 'load_hooks' ) {
16 - $controllers = apply_filters( 'frm_load_controllers', array( 'FrmHooksController' ) );
16 + $controllers = apply_filters( 'frm_load_controllers', array( 'FrmHooksController' ) );
17 +
17 18 $trigger_hooks = $hooks;
18 19 $hooks = (array) $hooks;
19 20
20 - if ( 'load_hooks' === $trigger_hooks ) {
21 + if ( 'load_hooks' == $trigger_hooks ) {
21 22 if ( is_admin() ) {
22 23 $hooks[] = 'load_admin_hooks';
23 -
24 24 if ( defined( 'DOING_AJAX' ) ) {
25 25 $hooks[] = 'load_ajax_hooks';
26 26 $hooks[] = 'load_form_hooks';
27 27 }
@@ -84,15 +84,8 @@
84 84 add_action( 'wp_footer', 'FrmHoneypot::maybe_print_honeypot_js', 99 );
85 85
86 86 add_action( 'wp_scheduled_delete', 'FrmForm::scheduled_delete' );
87 87
88 - // Clear embed posts transient when posts are updated.
89 - add_action( 'wp_insert_post', 'FrmFormsListHelper::maybe_clear_embed_posts_transient', 10, 3 );
90 - add_action( 'post_updated', 'FrmFormsListHelper::maybe_clear_embed_posts_transient_on_update', 10, 3 );
91 - add_action( 'trashed_post', 'FrmFormsListHelper::clear_embed_posts_transient_for_post' );
92 - add_action( 'untrashed_post', 'FrmFormsListHelper::clear_embed_posts_transient_for_post' );
93 - add_action( 'deleted_post', 'FrmFormsListHelper::clear_embed_posts_transient_for_post', 10, 2 );
94 -
95 88 // Form Shortcodes.
96 89 add_shortcode( 'formidable', 'FrmFormsController::get_form_shortcode' );
97 90
98 91 // Styles Controller.
@@ -103,8 +96,9 @@
103 96
104 97 // Simple Blocks Controller.
105 98 add_action( 'init', 'FrmSimpleBlocksController::register_simple_form_block' );
106 99
100 + add_filter( 'cron_schedules', 'FrmUsageController::add_schedules' );
107 101 add_action( 'formidable_send_usage', 'FrmUsageController::send_snapshot' );
108 102
109 103 /**
110 104 * Make name field work with View.
@@ -117,26 +111,11 @@
117 111
118 112 // Summary emails.
119 113 add_action( 'frm_daily_event', 'FrmEmailSummaryController::maybe_send_emails' );
120 114
121 - // Gated Content — daily cleanup of expired tokens.
122 - add_action( 'frm_daily_event', 'FrmGatedTokenHelper::cleanup_expired' );
123 -
124 - // Gated Content Controller.
125 - add_action( 'frm_trigger_gated_content_action', 'FrmGatedContentController::trigger', 10, 4 );
126 - // pre_get_posts: allows private posts into the query when a valid token is present.
127 - add_action( 'pre_get_posts', 'FrmGatedContentController::maybe_include_private_posts' );
128 - // 'wp' fires after WP::query_posts() so get_queried_object_id() is available.
129 - add_action( 'wp', 'FrmGatedContentController::maybe_unlock_post' );
130 - add_action( 'save_post_frm_form_actions', 'FrmGatedContentController::on_action_updated', 10, 3 );
131 - add_action( 'before_delete_post', 'FrmGatedContentController::on_action_deleted', 10, 2 );
132 - add_shortcode( 'frm_gated_content', 'FrmGatedContentShortcodeController::shortcode' );
133 - add_filter( 'frm_helper_shortcodes', 'FrmGatedContentController::add_shortcode_helper', 10, 3 );
134 -
135 115 FrmTransLiteHooksController::load_hooks();
136 116 FrmStrpLiteHooksController::load_hooks();
137 117 FrmSquareLiteHooksController::load_hooks();
138 - FrmPayPalLiteHooksController::load_hooks();
139 118
140 119 // GDPR
141 120 add_filter( 'frm_is_field_required', 'FrmFieldGdpr::force_required_field', 10, 2 );
142 121 }
@@ -167,21 +146,16 @@
167 146 }
168 147
169 148 add_action( 'frm_after_duplicate_form', 'FrmFormActionsController::duplicate_form_actions', 20, 3 );
170 149
171 - // Fields Model.
172 - add_filter( 'frm_pro_available_fields', 'FrmField::show_update_for_pro_fields' );
173 -
174 150 // Forms Controller.
175 151 add_action( 'admin_menu', 'FrmFormsController::menu', 10 );
176 152 add_action( 'admin_head-toplevel_page_formidable', 'FrmFormsController::head' );
177 153 add_action( 'frm_after_field_options', 'FrmFormsController::logic_tip' );
178 - add_action( 'frm_field_code_tab', 'FrmFormsController::field_part_shortcodes' );
179 - add_filter( 'frm_fields_in_form_builder', 'FrmFormsController::update_form_builder_fields' );
154 + add_filter( 'frm_fields_in_form_builder', 'FrmFormsController::update_form_builder_fields', 10, 2 );
180 155
181 156 add_filter( 'set-screen-option', 'FrmFormsController::save_per_page', 10, 3 );
182 157 add_action( 'admin_footer', 'FrmFormsController::insert_form_popup' );
183 - add_action( 'admin_footer', 'FrmFormsController::print_forms_list_templates' );
184 158
185 159 // Elementor.
186 160 add_action( 'elementor/editor/footer', 'FrmElementorController::admin_init' );
187 161
@@ -207,9 +181,8 @@
207 181 add_action( 'admin_menu', 'FrmXMLController::menu', 41 );
208 182
209 183 // Simple Blocks Controller.
210 184 add_action( 'enqueue_block_editor_assets', 'FrmSimpleBlocksController::block_editor_assets' );
211 - add_action( 'enqueue_block_assets', 'FrmSimpleBlocksController::block_assets' );
212 185
213 186 add_action( 'admin_init', 'FrmUsageController::schedule_send' );
214 187
215 188 // Applications Controller.
@@ -230,17 +203,12 @@
230 203 add_action( 'admin_enqueue_scripts', 'FrmDeactivationFeedbackController::enqueue_assets' );
231 204 add_action( 'admin_footer', 'FrmDeactivationFeedbackController::footer_html' );
232 205 add_action( 'deactivated_plugin', 'FrmDeactivationFeedbackController::set_feedback_expired_date' );
233 206
234 - add_action( 'frm_email_styles_extra_settings', 'FrmEmailStylesController::show_upsell_settings' );
235 -
236 - add_action( 'admin_init', 'FrmWelcomeTourController::admin_init' );
237 -
238 207 FrmDashboardController::load_admin_hooks();
239 208 FrmTransLiteHooksController::load_admin_hooks();
240 209 FrmStrpLiteHooksController::load_admin_hooks();
241 210 FrmSquareLiteHooksController::load_admin_hooks();
242 - FrmPayPalLiteHooksController::load_admin_hooks();
243 211 FrmSMTPController::load_hooks();
244 212 FrmOnboardingWizardController::load_admin_hooks();
245 213 FrmAddonsController::load_admin_hooks();
246 214 new FrmPluginSearch();
@@ -296,9 +264,8 @@
296 264
297 265 // Form Templates Controller.
298 266 add_action( 'wp_ajax_frm_add_or_remove_favorite_template', 'FrmFormTemplatesController::ajax_add_or_remove_favorite' );
299 267 add_action( 'wp_ajax_frm_create_template', 'FrmFormTemplatesController::ajax_create_template' );
300 - add_action( 'wp_ajax_frm_get_free_templates', 'FrmFormTemplatesController::ajax_get_free_templates' );
301 268
302 269 // Inbox.
303 270 add_action( 'wp_ajax_frm_inbox_dismiss', 'FrmInboxController::dismiss_message' );
304 271
@@ -336,17 +303,12 @@
336 303 add_action( 'wp_ajax_frm_get_applications_data', 'FrmApplicationsController::get_applications_data' );
337 304
338 305 // Reviews.
339 306 add_action( 'wp_ajax_frm_dismiss_review', 'FrmAppController::dismiss_review' );
307 +
340 308 add_action( 'wp_ajax_frm_small_screen_proceed', 'FrmAppController::small_screen_proceed' );
309 +
341 310 add_action( 'wp_ajax_frm_sale_banner_dismiss', 'FrmSalesApi::dismiss_banner' );
342 -
343 - add_action( 'wp_ajax_frm_email_style_preview', 'FrmEmailStylesController::ajax_preview' );
344 - add_action( 'wp_ajax_frm_send_test_email', 'FrmEmailStylesController::ajax_send_test_email' );
345 -
346 - // Welcome Tour.
347 - add_action( 'wp_ajax_frm_mark_checklist_step_as_completed', 'FrmWelcomeTourController::ajax_mark_checklist_step_as_completed' );
348 - add_action( 'wp_ajax_frm_dismiss_welcome_tour', 'FrmWelcomeTourController::ajax_dismiss_welcome_tour' );
349 311 }
350 312
351 313 /**
352 314 * @return void