PluginProbe
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More / 6.16.1
Formidable Forms – WordPress Form Builder for Contact Forms, Calculators, Quizzes & More v6.16.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 | stripe/controllers/FrmTransLiteEntriesController.php +5 -4 6.336.16.1 View file →
@@ -8,15 +8,18 @@
8 8 /**
9 9 * Include payment details in the entry sidebar.
10 10 *
11 11 * @param stdClass $entry
12 - *
13 12 * @return void
14 13 */
15 14 public static function sidebar_list( $entry ) {
15 + if ( FrmTransLiteAppHelper::should_fallback_to_paypal() ) {
16 + return;
17 + }
18 +
16 19 // This line removes PayPal actions from the entries sidebar.
17 20 remove_action( 'frm_show_entry_sidebar', 'FrmPaymentsController::sidebar_list' );
18 - add_action( 'frm_entry_shared_sidebar_middle', self::class . '::show_sidebar_list' );
21 + add_action( 'frm_entry_shared_sidebar_middle', __CLASS__ . '::show_sidebar_list' );
19 22 }
20 23
21 24 /**
22 25 * Show the payment details in the entry sidebar.
@@ -21,15 +24,13 @@
21 24 /**
22 25 * Show the payment details in the entry sidebar.
23 26 *
24 27 * @param stdClass $entry
25 - *
26 28 * @return void
27 29 */
28 30 public static function show_sidebar_list( $entry ) {
29 31 $frm_payment = new FrmTransLitePayment();
30 32 $payments = $frm_payment->get_all_for_entry( $entry->id );
31 -
32 33 if ( ! $payments ) {
33 34 return;
34 35 }
35 36