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/FrmTransLiteHooksController.php +5 -3 6.31 → trunk View file →
@@ -35,8 +35,10 @@
35 35 /**
36 36 * @return void
37 37 */
38 38 public static function load_admin_hooks() {
39 + add_action( 'frm_disconnected_gateway', 'FrmTransLiteAppController::maybe_remove_payment_cron', 10, 2 );
40 +
39 41 if ( class_exists( 'FrmTransHooksController', false ) ) {
40 42 add_action( 'frm_pay_show_square_options', 'FrmTransLiteAppController::add_repeat_cadence_value' );
41 43
42 44 add_action( 'frm_pay_show_stripe_options', 'FrmStrpLiteActionsController::add_action_options' );
@@ -57,9 +59,9 @@
57 59
58 60 // If no additional gateways (Like Authorize.Net) are set, hide the Collect Payment action.
59 61 // Since we have icons for Stripe, Square, and PayPal, we don't need the Collect Payment action.
60 62 if ( ! array_diff( $gateways, array( 'stripe', 'square', 'paypal' ) ) ) {
61 - self::hide_collect_payment_action();
63 + add_action( 'admin_print_styles', array( self::class, 'hide_collect_payment_action' ) );
62 64 }
63 65 }
64 66 );
65 67
@@ -67,9 +69,9 @@
67 69 return;
68 70 }//end if
69 71
70 72 if ( self::on_form_settings_page() ) {
71 - self::hide_collect_payment_action();
73 + add_action( 'admin_print_styles', array( self::class, 'hide_collect_payment_action' ) );
72 74 }
73 75
74 76 // Actions.
75 77 add_action( 'admin_menu', 'FrmTransLitePaymentsController::menu', 25 );
@@ -103,9 +105,9 @@
103 105 * @since 6.31
104 106 *
105 107 * @return void
106 108 */
107 - private static function hide_collect_payment_action() {
109 + public static function hide_collect_payment_action() {
108 110 echo '
109 111 <style>
110 112 li.frm-action:has(.frm_payment_action) { display: none; }
111 113 </style>