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 | classes/controllers/FrmFormActionsController.php +24 -2 6.31 → trunk View file →
@@ -54,8 +54,9 @@
54 54 public static function register_actions() {
55 55 $action_classes = array(
56 56 'on_submit' => 'FrmOnSubmitAction',
57 57 'email' => 'FrmEmailAction',
58 + 'gated_content' => 'FrmGatedContentAction',
58 59 'wppost' => 'FrmDefPostAction',
59 60 'register' => 'FrmDefRegAction',
60 61 'stripe' => 'FrmStripeLiteAction',
61 62 'square' => 'FrmSquareAction',
@@ -133,8 +134,9 @@
133 134 'mailpoet' => __( 'Plugin automation', 'formidable' ),
134 135 'api' => __( 'System integration', 'formidable' ),
135 136 'googlespreadsheet' => __( 'Spreadsheet sync', 'formidable' ),
136 137 'convertkit' => __( 'Broadcast publishing', 'formidable' ),
138 + 'gated_content' => __( 'Access control', 'formidable' ),
137 139 );
138 140
139 141 foreach ( self::$registered_actions->actions as $action ) {
140 142 if ( $action->action_options['description'] === '' && isset( $descriptions[ $action->id_base ] ) ) {
@@ -460,8 +462,12 @@
460 462 $classes .= ' frm_active_action';
461 463 } else {
462 464 $classes .= ' frm_inactive_action';
463 465
466 + if ( str_contains( $action_control->action_options['classes'], 'frm_show_expired_modal' ) ) {
467 + $classes .= ' frm_show_expired_modal';
468 + }
469 +
464 470 if ( $default_position !== false && ( $allowed_count + $default_position ) < 6 ) {
465 471 $group_class .= ' frm-default-show';
466 472 }
467 473
@@ -738,9 +744,25 @@
738 744 *
739 745 * @return bool
740 746 */
741 747 private static function should_show_log_message( $action_type ) {
742 - $logging = array( 'api', 'salesforce', 'constantcontact', 'activecampaign' );
748 + $logging = array(
749 + 'activecampaign',
750 + 'api',
751 + 'aweber',
752 + 'campaignmonitor',
753 + 'constantcontact',
754 + 'convertkit',
755 + 'getresponse',
756 + 'googlespreadsheet',
757 + 'hubspot',
758 + 'mailchimp',
759 + 'mailpoet',
760 + 'n8n',
761 + 'salesforce',
762 + 'twilio',
763 + 'zapier',
764 + );
743 765 return in_array( $action_type, $logging, true ) && ! function_exists( 'frm_log_autoloader' );
744 766 }
745 767
746 768 /**
@@ -1105,9 +1127,9 @@
1105 1127 *
1106 1128 * @return string[]
1107 1129 */
1108 1130 public static function get_lite_actions() {
1109 - return apply_filters( 'frm_lite_form_actions', array( 'on_submit', 'email', 'payment', 'stripe', 'square', 'paypal' ) );
1131 + return apply_filters( 'frm_lite_form_actions', array( 'on_submit', 'email', 'payment', 'stripe', 'square', 'paypal', 'gated_content' ) );
1110 1132 }
1111 1133
1112 1134 /**
1113 1135 * Single source of truth for learn-more URL slugs used in