PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / trunk
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More vtrunk
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 | stripe/controllers/FrmStrpLiteHooksController.php +14 -13 6.5 → trunk View file →
@@ -19,25 +19,26 @@
19 19 add_action( 'frm_enqueue_form_scripts', 'FrmStrpLiteActionsController::maybe_load_scripts' );
20 20 add_action( 'init', 'FrmStrpLiteConnectHelper::check_for_stripe_connect_webhooks' );
21 21
22 22 // Filters.
23 + add_filter( 'frm_saved_errors', 'FrmStrpLiteAppController::maybe_add_payment_error', 10, 2 );
23 24 add_filter( 'frm_filter_final_form', 'FrmStrpLiteAuth::maybe_show_message' );
25 + add_filter( 'frm_setup_edit_entry_vars', 'FrmStrpLiteAppController::maybe_delete_pay_entry', 20, 2 );
24 26
25 - // This filter flags the Pro credit card field that Stripe is enabled.
26 - add_filter(
27 - 'frm_pro_show_card_callback',
28 - function() {
29 - return 'FrmStrpLiteActionsController::show_card';
30 - }
31 - );
27 + add_filter( 'frm_pro_show_card_callback', 'FrmStrpLiteActionsController::maybe_show_card', 10, 2 );
32 28
33 29 // This filter hides gateway fields from the entries list.
34 30 add_filter(
35 31 'frm_fields_in_entries_list_table',
36 - function( $form_cols ) {
32 + function ( $form_cols ) {
37 33 return array_filter(
38 34 $form_cols,
39 - function( $form_col ) {
35 + /**
36 + * @param stdClass $form_col
37 + *
38 + * @return bool
39 + */
40 + function ( $form_col ) {
40 41 return 'gateway' !== $form_col->type;
41 42 }
42 43 );
43 44 }
@@ -43,12 +44,13 @@
43 44 }
44 45 );
45 46
46 47 add_filter( 'frm_payment_gateways', 'FrmStrpLiteAppController::add_gateway' );
48 + add_filter( 'frm_validate_credit_card_field_entry', 'FrmStrpLiteActionsController::remove_cc_validation', 20, 3 );
47 49
48 50 // Stripe link.
49 51 add_filter( 'frm_form_object', 'FrmStrpLiteLinkController::force_ajax_submit_for_stripe_link' );
50 - add_filter( 'frm_form_classes', 'FrmStrpLiteLinkController::add_form_classes' );
52 + add_action( 'frm_form_classes', 'FrmStrpLiteLinkController::add_form_classes' );
51 53 }
52 54
53 55 /**
54 56 * @return void
@@ -60,10 +62,9 @@
60 62 }
61 63
62 64 // Actions.
63 65 add_action( 'frm_after_uninstall', 'FrmStrpLiteAppController::uninstall' );
64 - add_action( 'frm_add_settings_section', 'FrmStrpLiteSettingsController::add_settings_section' );
65 - add_action( 'admin_init', 'FrmStrpLiteAppController::maybe_redirect_to_stripe_settings' );
66 + add_filter( 'frm_add_settings_section', 'FrmStrpLiteSettingsController::add_settings_section' );
66 67 add_action( 'frm_update_settings', 'FrmStrpLiteSettingsController::process_form' );
67 68
68 69 // Filters.
69 70 add_filter( 'frm_pay_action_defaults', 'FrmStrpLiteActionsController::add_action_defaults' );
@@ -89,8 +90,8 @@
89 90 // Stripe link.
90 91 add_action( 'wp_ajax_nopriv_frmstrplinkreturn', 'FrmStrpLiteLinkController::handle_return_url' );
91 92 add_action( 'wp_ajax_frmstrplinkreturn', 'FrmStrpLiteLinkController::handle_return_url' );
92 93
93 - // Stripe Lite
94 + // Stripe Lite.
94 95 add_action( 'wp_ajax_nopriv_frm_strp_lite_verify', 'FrmStrpLiteConnectHelper::verify' );
95 96 }
96 97 }