| @@ -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 ] ) ) { |
| @@ -1125,9 +1127,9 @@ | ||
| 1125 | 1127 | * |
| 1126 | 1128 | * @return string[] |
| 1127 | 1129 | */ |
| 1128 | 1130 | public static function get_lite_actions() { |
| 1129 | - 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' ) ); | |
| 1130 | 1132 | } |
| 1131 | 1133 | |
| 1132 | 1134 | /** |
| 1133 | 1135 | * Single source of truth for learn-more URL slugs used in |