-
Notifications
You must be signed in to change notification settings - Fork 41
Rock gated content #3088
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
truongwp
wants to merge
116
commits into
master
Choose a base branch
from
rock-gated-content
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Rock gated content #3088
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 56ccb14
Create gated_tokens db table
truongwp 347fa2d
Add gated token helper
truongwp b84c0b4
Add code to trigger the gated content action
truongwp 709c312
Add code to obtain gated content token
truongwp 60852cd
Add gated content shortcode
truongwp e0e06c1
Handle password protected posts
truongwp b0a3830
Fix open access for password protected pages not working
truongwp 69ebb2f
Add show=url to shortcode
truongwp f12e90c
Support private pages
truongwp 3d338a6
Use frm_clone_icon
truongwp 9b550ac
Necessary code to add more gated content type
truongwp 32eeae2
Add unit tests
truongwp 5b5b5b8
Add support for running gated content in payment success
truongwp 334d5f9
Update unit tests
truongwp 6f0f023
Merge master into branch, keeping db_version 106 and built JS
truongwp 20314c4
Fix JS error when sorting fields and PHP error when duplicating form
truongwp b95e703
Use transient to temporarily store the gated content token
truongwp 27dab71
Fix PHPStan
truongwp e7b8988
Fix PHPStan
truongwp 2c012f7
Remove md5()
truongwp d4c35aa
Fix deepsource error
truongwp ccc67e3
Fix Psalm
truongwp 2a8d369
Fix PHPStan
truongwp 877e9e6
Revert deepsource config file
truongwp 872adcc
Change apply_filters() params
truongwp ae4744a
Fix empty redirect URL
truongwp cf17c3b
Revoke old token before updating
truongwp 0d917fc
Update unit tests
truongwp 18c8086
Schedule delete expired gated content tokens
truongwp 0bb1615
Update obtain_token() method
truongwp d8e35dc
Reduce extra DB query
truongwp a559c55
Update data-item-count
truongwp d9910b0
Remove deprecated function
truongwp 91d6480
Improve code
truongwp 1e6b04a
Improve code
truongwp dcdc4ab
Move some features to Pro
truongwp 29a1e45
Remove unnecessary since
truongwp b9603d7
Improve code
truongwp 432fb4f
Add back the static variable for tokens
truongwp ede69c0
Add cache
truongwp 418bc99
Improve code
truongwp 010c8b0
Remove unused code
truongwp bb0487d
Show extra settings in Gated content action
truongwp 6a7eb60
Improve code
truongwp 2848b6f
Change icon and color of gated content action
truongwp 753612e
Change gated content item column layout
truongwp 21242ec
Improve styling of gated content action
truongwp bbe8e5b
Fix the file dropdown in Gated content not live updated
truongwp 6cd6c74
Gated content: Remove unnecessary code
truongwp 43bbf89
Gated content: Improve code
truongwp e374054
Gated content: improve the cookie format to reduce DB calls
truongwp ca7f657
Gated content: Refactor code
truongwp 0ba0afc
Gated content: Add some filters
truongwp 5cf9fd0
Gated content: update unit tests
truongwp e3d33cd
Gated content: do not show publish pages in gated item select
truongwp c45c1cc
Gated content: Init autocomplete after adding row
truongwp db257d3
Gated content: Fix autocomplete JS
truongwp b963933
Gated content: Fix private page not open
truongwp e428393
Gated content: Improve code
truongwp 436f767
Gated content: add cache to action_contains_item()
truongwp 5b90719
Gated content: remove update event
truongwp 0de960e
Merge branch 'master' into rock-gated-content
truongwp 79f9a3e
Gated content: Move update entry code to Pro
truongwp 9bc7edf
Gated content: move expired_time shortcode code to Pro
truongwp 5ce30a2
Gated content: simplify the user id check
truongwp 7cc2798
Gated content: support post and page by default
truongwp c50aa62
Gated content: break down long method
truongwp eeb003b
Fix PHPStan
truongwp aefcbd6
Fix deepsource JS
truongwp d4812a6
Fix PHPStan
truongwp f7c62d3
Fix deepsource JS
truongwp 7420ce8
Gated content: improve code
truongwp f6f1b1f
Gated content: remove unused code
truongwp 6fd7e06
Gated content: Create shortcode controller
truongwp 5cd1f21
Gated content: improve code
truongwp 130ee65
Gated content: improve code
truongwp 7fcc076
Gated content: remove unrelated code
truongwp 1d015d5
Gated content: improve JS code
truongwp f964005
Gated content: fix type and PHPStan
truongwp 8f17d13
Gated content: Fix Rector and PHP CS Fixer
truongwp f8b738c
Gated content: Fix unit tests
truongwp d17fca3
Fix eslint
truongwp 7002d7a
Fix unit tests
truongwp fdf8cb2
Fix PHPCS
truongwp 66d2f25
Fix PHPCS
truongwp cf67061
Gated content: rename filter
truongwp eff7f69
Gated content: add FrmgatedItem class
truongwp ba4531d
Gated content: update unit tests
truongwp 819a01e
Gated content: fix PHPCS
truongwp b980518
Gated content: Fix mago
truongwp 45e88fc
Gated content: Fix PHPStan
truongwp c8b525f
Gated content: update FrmGatedItem construct
truongwp 207f0e5
Gated content: improve code
truongwp d611cde
Gated content: Fix PHPCS and PHPStan
truongwp 0227fb1
Gated content: Fix PHPCS and PHPStan
truongwp 07c2ca5
Gated content: fix PHPCSFixer
truongwp aeb7e04
Gated content: update hook param
truongwp 0ee2321
Gated content: change hook
truongwp ddb131c
Gated content: support string item ID
truongwp e0ca044
Gated content: Fix the private not work
truongwp 74ce8d9
Gated content: Add support for view
truongwp 4a68b9b
Gated content: make each post type an option
truongwp a2dc00d
Add gated content shortcodes to the shortcodes box
truongwp a27c9aa
Merge origin/master into rock-gated-content
truongwp 3b627c3
Fix PHPCS and PHPCSFixer
truongwp 2520f2b
Fix PHPStan
truongwp 57aaa77
Fix PHPCS
truongwp 0292812
Gated content: update code to support Views
truongwp 00dc257
Merge branch 'master' into rock-gated-content
truongwp 66ea7c3
Gated content: Fix PHPCS
truongwp 7eae149
Gated content: Fix PHPCS
truongwp c1af7da
Gated content: Remove Upload file type (v2)
truongwp f211380
Merge branch 'master' into rock-gated-content
truongwp e638fc5
Fix PHPCS
truongwp 2979f16
Fix ESlint
truongwp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function call is not valid, which will result in a fatal runtime error.