Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
116 commits
Select commit Hold shift + click to select a range
30b8547
Add Gated content form action
truongwp Apr 16, 2026
56ccb14
Create gated_tokens db table
truongwp Apr 16, 2026
347fa2d
Add gated token helper
truongwp Apr 16, 2026
b84c0b4
Add code to trigger the gated content action
truongwp Apr 16, 2026
709c312
Add code to obtain gated content token
truongwp Apr 16, 2026
60852cd
Add gated content shortcode
truongwp Apr 16, 2026
e0e06c1
Handle password protected posts
truongwp Apr 16, 2026
b0a3830
Fix open access for password protected pages not working
truongwp Apr 17, 2026
69ebb2f
Add show=url to shortcode
truongwp Apr 19, 2026
f12e90c
Support private pages
truongwp Apr 19, 2026
3d338a6
Use frm_clone_icon
truongwp Apr 21, 2026
9b550ac
Necessary code to add more gated content type
truongwp Apr 24, 2026
32eeae2
Add unit tests
truongwp Apr 25, 2026
5b5b5b8
Add support for running gated content in payment success
truongwp Apr 25, 2026
334d5f9
Update unit tests
truongwp Apr 25, 2026
6f0f023
Merge master into branch, keeping db_version 106 and built JS
truongwp Apr 27, 2026
20314c4
Fix JS error when sorting fields and PHP error when duplicating form
truongwp Apr 27, 2026
b95e703
Use transient to temporarily store the gated content token
truongwp Apr 27, 2026
27dab71
Fix PHPStan
truongwp Apr 27, 2026
e7b8988
Fix PHPStan
truongwp Apr 27, 2026
2c012f7
Remove md5()
truongwp Apr 27, 2026
d4c35aa
Fix deepsource error
truongwp Apr 27, 2026
ccc67e3
Fix Psalm
truongwp Apr 27, 2026
2a8d369
Fix PHPStan
truongwp Apr 27, 2026
877e9e6
Revert deepsource config file
truongwp Apr 27, 2026
872adcc
Change apply_filters() params
truongwp Apr 28, 2026
ae4744a
Fix empty redirect URL
truongwp Apr 28, 2026
cf17c3b
Revoke old token before updating
truongwp Apr 28, 2026
0d917fc
Update unit tests
truongwp Apr 28, 2026
18c8086
Schedule delete expired gated content tokens
truongwp Apr 28, 2026
0bb1615
Update obtain_token() method
truongwp Apr 28, 2026
d8e35dc
Reduce extra DB query
truongwp Apr 28, 2026
a559c55
Update data-item-count
truongwp Apr 28, 2026
d9910b0
Remove deprecated function
truongwp Apr 28, 2026
91d6480
Improve code
truongwp Apr 28, 2026
1e6b04a
Improve code
truongwp Apr 28, 2026
dcdc4ab
Move some features to Pro
truongwp Apr 28, 2026
29a1e45
Remove unnecessary since
truongwp Apr 28, 2026
b9603d7
Improve code
truongwp Apr 28, 2026
432fb4f
Add back the static variable for tokens
truongwp Apr 28, 2026
ede69c0
Add cache
truongwp Apr 28, 2026
418bc99
Improve code
truongwp Apr 28, 2026
010c8b0
Remove unused code
truongwp Apr 28, 2026
bb0487d
Show extra settings in Gated content action
truongwp Apr 28, 2026
6a7eb60
Improve code
truongwp Apr 29, 2026
2848b6f
Change icon and color of gated content action
truongwp May 7, 2026
753612e
Change gated content item column layout
truongwp May 7, 2026
21242ec
Improve styling of gated content action
truongwp May 7, 2026
bbe8e5b
Fix the file dropdown in Gated content not live updated
truongwp May 11, 2026
6cd6c74
Gated content: Remove unnecessary code
truongwp May 11, 2026
43bbf89
Gated content: Improve code
truongwp May 12, 2026
e374054
Gated content: improve the cookie format to reduce DB calls
truongwp May 13, 2026
ca7f657
Gated content: Refactor code
truongwp May 17, 2026
0ba0afc
Gated content: Add some filters
truongwp May 18, 2026
5cf9fd0
Gated content: update unit tests
truongwp May 18, 2026
e3d33cd
Gated content: do not show publish pages in gated item select
truongwp May 18, 2026
c45c1cc
Gated content: Init autocomplete after adding row
truongwp May 18, 2026
db257d3
Gated content: Fix autocomplete JS
truongwp May 18, 2026
b963933
Gated content: Fix private page not open
truongwp May 18, 2026
e428393
Gated content: Improve code
truongwp May 18, 2026
436f767
Gated content: add cache to action_contains_item()
truongwp May 18, 2026
5b90719
Gated content: remove update event
truongwp May 18, 2026
0de960e
Merge branch 'master' into rock-gated-content
truongwp May 18, 2026
79f9a3e
Gated content: Move update entry code to Pro
truongwp May 18, 2026
9bc7edf
Gated content: move expired_time shortcode code to Pro
truongwp May 19, 2026
5ce30a2
Gated content: simplify the user id check
truongwp May 19, 2026
7cc2798
Gated content: support post and page by default
truongwp May 19, 2026
c50aa62
Gated content: break down long method
truongwp May 19, 2026
eeb003b
Fix PHPStan
truongwp May 19, 2026
aefcbd6
Fix deepsource JS
truongwp May 19, 2026
d4812a6
Fix PHPStan
truongwp May 19, 2026
f7c62d3
Fix deepsource JS
truongwp May 19, 2026
7420ce8
Gated content: improve code
truongwp May 19, 2026
f6f1b1f
Gated content: remove unused code
truongwp May 19, 2026
6fd7e06
Gated content: Create shortcode controller
truongwp May 19, 2026
5cd1f21
Gated content: improve code
truongwp May 19, 2026
130ee65
Gated content: improve code
truongwp May 19, 2026
7fcc076
Gated content: remove unrelated code
truongwp May 19, 2026
1d015d5
Gated content: improve JS code
truongwp May 19, 2026
f964005
Gated content: fix type and PHPStan
truongwp May 19, 2026
8f17d13
Gated content: Fix Rector and PHP CS Fixer
truongwp May 19, 2026
f8b738c
Gated content: Fix unit tests
truongwp May 19, 2026
d17fca3
Fix eslint
truongwp May 19, 2026
7002d7a
Fix unit tests
truongwp May 19, 2026
fdf8cb2
Fix PHPCS
truongwp May 19, 2026
66d2f25
Fix PHPCS
truongwp May 19, 2026
cf67061
Gated content: rename filter
truongwp May 20, 2026
eff7f69
Gated content: add FrmgatedItem class
truongwp May 20, 2026
ba4531d
Gated content: update unit tests
truongwp May 20, 2026
819a01e
Gated content: fix PHPCS
truongwp May 20, 2026
b980518
Gated content: Fix mago
truongwp May 20, 2026
45e88fc
Gated content: Fix PHPStan
truongwp May 20, 2026
c8b525f
Gated content: update FrmGatedItem construct
truongwp May 20, 2026
207f0e5
Gated content: improve code
truongwp May 20, 2026
d611cde
Gated content: Fix PHPCS and PHPStan
truongwp May 20, 2026
0227fb1
Gated content: Fix PHPCS and PHPStan
truongwp May 20, 2026
07c2ca5
Gated content: fix PHPCSFixer
truongwp May 20, 2026
aeb7e04
Gated content: update hook param
truongwp May 20, 2026
0ee2321
Gated content: change hook
truongwp May 20, 2026
ddb131c
Gated content: support string item ID
truongwp May 20, 2026
e0ca044
Gated content: Fix the private not work
truongwp May 20, 2026
74ce8d9
Gated content: Add support for view
truongwp May 20, 2026
4a68b9b
Gated content: make each post type an option
truongwp May 21, 2026
a2dc00d
Add gated content shortcodes to the shortcodes box
truongwp May 25, 2026
a27c9aa
Merge origin/master into rock-gated-content
truongwp May 25, 2026
3b627c3
Fix PHPCS and PHPCSFixer
truongwp May 25, 2026
2520f2b
Fix PHPStan
truongwp May 25, 2026
57aaa77
Fix PHPCS
truongwp May 25, 2026
0292812
Gated content: update code to support Views
truongwp Jun 1, 2026
00dc257
Merge branch 'master' into rock-gated-content
truongwp Jun 1, 2026
66ea7c3
Gated content: Fix PHPCS
truongwp Jun 1, 2026
7eae149
Gated content: Fix PHPCS
truongwp Jun 1, 2026
c1af7da
Gated content: Remove Upload file type (v2)
truongwp Jun 4, 2026
f211380
Merge branch 'master' into rock-gated-content
truongwp Jun 4, 2026
e638fc5
Fix PHPCS
truongwp Jun 4, 2026
2979f16
Fix ESlint
truongwp Jun 4, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 0 additions & 56 deletions .htaccess

This file was deleted.

1 change: 1 addition & 0 deletions classes/controllers/FrmFormActionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public static function register_actions() {
$action_classes = array(
'on_submit' => 'FrmOnSubmitAction',
'email' => 'FrmEmailAction',
'gated_content' => 'FrmGatedContentAction',
'wppost' => 'FrmDefPostAction',
'register' => 'FrmDefRegAction',
'stripe' => 'FrmStripeLiteAction',
Expand Down
7 changes: 4 additions & 3 deletions classes/controllers/FrmFormsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1381,7 +1381,7 @@
* @param object[] $fields Array of fields.
* @param array $args The arguments. Contains `form`.
*/
$values['fields'] = apply_filters( 'frm_fields_in_form_builder', $fields, compact( 'form' ) );

Check warning on line 1384 in classes/controllers/FrmFormsController.php

View workflow job for this annotation

GitHub Actions / Mago

possibly-invalid-array-access

Cannot perform array access on value of type `bool`. >The expression might be `bool` here. Attempting to use a scalar value as an array will result in a runtime error. Help: Ensure the variable holds an array before accessing it.

$edit_message = __( 'Form was successfully updated.', 'formidable' );

Expand Down Expand Up @@ -1463,7 +1463,7 @@
* @param array $fields Array of fields.
* @param array $args The arguments. Contains `form`.
*/
$values['fields'] = apply_filters( 'frm_fields_in_settings', $values['fields'], compact( 'form' ) );

Check warning on line 1466 in classes/controllers/FrmFormsController.php

View workflow job for this annotation

GitHub Actions / Mago

possibly-invalid-array-access

Cannot perform array access on value of type `bool`. >The expression might be `bool` here. Attempting to use a scalar value as an array will result in a runtime error. Help: Ensure the variable holds an array before accessing it.

Check warning on line 1466 in classes/controllers/FrmFormsController.php

View workflow job for this annotation

GitHub Actions / Mago

possibly-invalid-array-access

Cannot perform array access on value of type `bool`. >The expression might be `bool` here. Attempting to use a scalar value as an array will result in a runtime error. Help: Ensure the variable holds an array before accessing it.

self::clean_submit_html( $values );

Expand Down Expand Up @@ -1737,7 +1737,7 @@
$col = 'one';
$settings_tab = FrmAppHelper::is_admin_page( 'formidable' );
$cond_shortcodes = apply_filters( 'frm_conditional_shortcodes', array() );
$entry_shortcodes = self::get_shortcode_helpers( $settings_tab );
$entry_shortcodes = self::get_shortcode_helpers( $settings_tab, $form_id );
$advanced_helpers = self::advanced_helpers( compact( 'fields', 'form_id' ) );

if ( 'default' === $template_path || ! file_exists( $template_path ) ) {
Expand Down Expand Up @@ -1846,10 +1846,11 @@
* @since 2.0.6
*
* @param bool $settings_tab
* @param int $form_id
*
* @return array
*/
private static function get_shortcode_helpers( $settings_tab ) {
private static function get_shortcode_helpers( $settings_tab, $form_id = 0 ) {
$entry_shortcodes = array(
'id' => __( 'Entry ID', 'formidable' ),
'key' => __( 'Entry Key', 'formidable' ),
Expand Down Expand Up @@ -1878,7 +1879,7 @@
* @param array $entry_shortcodes
* @param bool $settings_tab
*/
return apply_filters( 'frm_helper_shortcodes', $entry_shortcodes, $settings_tab );
return apply_filters( 'frm_helper_shortcodes', $entry_shortcodes, $settings_tab, $form_id );
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Function apply_filters invoked with 4 parameters, 2 required


The function call is not valid, which will result in a fatal runtime error.

}

/**
Expand Down
Loading
Loading