PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.0
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.0
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 +1 -31 6.46.0 View file →
@@ -6,12 +6,8 @@
6 6 class FrmHooksController {
7 7
8 8 /**
9 9 * Trigger plugin-wide hook loading
10 - *
11 - * @param string $hooks
12 - *
13 - * @return void
14 10 */
15 11 public static function trigger_load_hook( $hooks = 'load_hooks' ) {
16 12 $controllers = apply_filters( 'frm_load_controllers', array( 'FrmHooksController' ) );
17 13
@@ -48,18 +44,12 @@
48 44 }
49 45
50 46 }
51 47
52 - /**
53 - * @return void
54 - */
55 48 public static function trigger_load_form_hooks() {
56 49 self::trigger_load_hook( 'load_form_hooks' );
57 50 }
58 51
59 - /**
60 - * @return void
61 - */
62 52 public static function load_hooks() {
63 53 add_action( 'rest_api_init', 'FrmAppController::create_rest_routes', 0 );
64 54 add_action( 'plugins_loaded', 'FrmAppController::load_lang' );
65 55 add_filter( 'widget_text', 'do_shortcode' );
@@ -107,17 +97,14 @@
107 97 add_action( 'elementor/widgets/register', 'FrmElementorController::register_elementor_hooks' );
108 98 add_filter( 'frm_fields_in_form_builder', 'FrmFormsController::update_form_builder_fields', 10, 2 );
109 99 }
110 100
111 - /**
112 - * @return void
113 - */
114 101 public static function load_admin_hooks() {
115 102 add_action( 'admin_menu', 'FrmAppController::menu', 1 );
116 103 add_filter( 'admin_body_class', 'FrmAppController::add_admin_class', 999 );
104 + add_action( 'admin_enqueue_scripts', 'FrmAppController::load_wp_admin_style' );
117 105 add_action( 'admin_notices', 'FrmAppController::pro_get_started_headline' );
118 106 add_action( 'admin_init', 'FrmAppController::admin_init', 11 );
119 - add_action( 'admin_enqueue_scripts', 'FrmAppController::admin_enqueue_scripts' );
120 107 add_filter( 'plugin_action_links_' . FrmAppHelper::plugin_folder() . '/formidable.php', 'FrmAppController::settings_link' );
121 108 add_filter( 'admin_footer_text', 'FrmAppController::set_footer_text' );
122 109 add_action( 'wp_ajax_frm_dismiss_review', 'FrmAppController::dismiss_review' );
123 110
@@ -191,11 +178,8 @@
191 178 FrmWelcomeController::load_hooks();
192 179 new FrmPluginSearch();
193 180 }
194 181
195 - /**
196 - * @return void
197 - */
198 182 public static function load_ajax_hooks() {
199 183 add_action( 'wp_ajax_frm_install', 'FrmAppController::ajax_install' );
200 184 add_action( 'wp_ajax_frm_uninstall', 'FrmAppController::uninstall' );
201 185 add_action( 'wp_ajax_frm_deauthorize', 'FrmAppController::deauthorize' );
@@ -254,16 +238,10 @@
254 238 add_action( 'wp_ajax_frm_export_xml', 'FrmXMLController::export_xml' );
255 239
256 240 // Templates API.
257 241 add_action( 'wp_ajax_template_api_signup', 'FrmFormTemplateApi::signup' );
258 -
259 - // Submit with AJAX.
260 - add_action( 'wp_loaded', 'FrmEntriesAJAXSubmitController::ajax_create', 5 ); // Trigger before process_entry.
261 242 }
262 243
263 - /**
264 - * @return void
265 - */
266 244 public static function load_form_hooks() {
267 245 // Fields Controller.
268 246 add_filter( 'frm_field_type', 'FrmFieldsController::change_type' );
269 247 add_action( 'frm_field_input_html', 'FrmFieldsController::input_html' );
@@ -278,18 +256,12 @@
278 256 // Styles Controller.
279 257 add_filter( 'frm_use_important_width', 'FrmStylesController::important_style', 10, 2 );
280 258 }
281 259
282 - /**
283 - * @return void
284 - */
285 260 public static function load_view_hooks() {
286 261 // Hooks go here when a view is loaded.
287 262 }
288 263
289 - /**
290 - * @return void
291 - */
292 264 public static function load_multisite_hooks() {
293 265 add_action( 'wpmu_upgrade_site', 'FrmAppController::network_upgrade_site' );
294 266
295 267 // Drop tables when mu site is deleted.
@@ -297,10 +269,8 @@
297 269 }
298 270
299 271 /**
300 272 * @deprecated 5.0.06 use FrmElementorController::register_elementor_hooks directly.
301 - *
302 - * @return void
303 273 */
304 274 public static function register_elementor_hooks() {
305 275 _deprecated_function( __FUNCTION__, '5.0.06', 'FrmElementorController::register_elementor_hooks' );
306 276 FrmElementorController::register_elementor_hooks();