41 Commits

Author SHA1 Message Date
Tetrakern
91b8083b0a Add fictioneer_filter_patreon_tier_unlock filter 2025-01-05 08:20:13 +01:00
Tetrakern
fde4762e94 Improve guard clause for date update block 2024-12-22 07:56:28 +01:00
Tetrakern
c5f7e23ff5 Use wp_print_inline_script_tag()
Makes it possible to apply script content policy.
2024-11-28 15:24:19 +01:00
Tetrakern
9f6861b1c6 Fix use of pre_get_posts hook to only use add_action()
add_filter() did work but was technically wrong.
2024-10-30 10:34:32 +01:00
Tetrakern
d77f3e18aa Add crosspost user capability 2024-10-26 22:46:30 +02:00
Tetrakern
4b41dc825c Add helper to get chapter story ID
This would be useful if I ever decide to use the parent ID field instead if meta.
2024-10-26 02:03:23 +02:00
Tetrakern
2263c2816f Allow password bypass to work on comment submit 2024-10-12 15:25:01 +02:00
Tetrakern
3d82c66c98 Add fcnt shortcode for tooltips 2024-10-03 12:57:55 +02:00
Tetrakern
cf331eb2b0 Fix fcn_edit_date capability 2024-09-24 18:56:36 +02:00
Tetrakern
0154155d83 Fix undefined array key warning 2024-09-18 09:44:25 +02:00
Tetrakern
927ceb7bf5 Remove fictioneer_first_publish_date meta 2024-09-17 15:43:57 +02:00
Tetrakern
4f1eb88933 Fix comments not loading on bypassed protected posts 2024-08-16 13:46:11 +02:00
Tetrakern
0d31cef6e0 Fix cache disabling bug in password bypass
Welp.
2024-08-13 19:16:22 +02:00
Tetrakern
4eec1f9b1f Fix password bypass cache issue (again) 2024-05-19 02:36:46 +02:00
Tetrakern
6fe453bff7 Optimize some lines 2024-05-17 15:35:38 +02:00
Tetrakern
4d707ac4ba Add option to show default WP login link 2024-05-15 01:22:03 +02:00
Tetrakern
263bee6fd6 Fix post password bypass caching issue
This should now properly set all cookies first, so that cache plugins can figure out whether this post should be cached or not.
2024-05-12 18:29:08 +02:00
Tetrakern
c291bcbf81 Add capability and conditions to post password expiration 2024-05-11 17:04:30 +02:00
Tetrakern
aeb0982050 Rename function to *_get_post_patreon_data
For clarity.
2024-05-10 16:58:06 +02:00
Tetrakern
c48cac6e18 Optimize fictioneer_bypass_password() 2024-05-10 16:47:40 +02:00
Tetrakern
4b0810d236 Update post_password_required hook functions
Return early if already unlocked
2024-05-10 02:51:53 +02:00
Tetrakern
52984bb45d Add static variable cache to password bypass filter 2024-05-09 17:24:26 +02:00
Tetrakern
e346f1f78f Add Patreon gate option to post unlock feature 2024-05-09 17:23:55 +02:00
Tetrakern
ffbf97644b Add feature to unlock selected posts per user 2024-05-08 23:44:10 +02:00
Tetrakern
33522108f0 Remove commented-out code 2024-05-03 16:31:34 +02:00
Tetrakern
9e0089c5ef Fix admin_panel_access capability
Will no longer prevent users from changing their frontend profiles.
2024-05-01 19:10:55 +02:00
Tetrakern
332cbc0d20 Remove superfluous out-of-scope array
No idea why I put that there.
2024-04-29 20:45:59 +02:00
Tetrakern
f2bfb1a19c Account for Patreon lifetime_amount_cents 2024-04-29 02:52:00 +02:00
Tetrakern
722acc1c52 Allow unpublished Patreon tiers
They are still technically active.
2024-04-28 21:47:48 +02:00
Tetrakern
0887958448 Add utility to get a post's Patreon data 2024-04-28 14:02:24 +02:00
Tetrakern
808bf90726 Add capability to assign Patreon tiers and thresholds 2024-04-27 17:28:47 +02:00
Tetrakern
43a55d796a Update setting texts 2024-04-27 16:21:43 +02:00
Tetrakern
5c5743bda6 Update Patreon tier check for global tiers/thresholds 2024-04-27 14:36:10 +02:00
Tetrakern
2fa25630f8 Add fictioneer_patreon_tiers_valid() function
And a filter.
2024-04-27 13:22:01 +02:00
Tetrakern
bdb4f565e1 Add setting to enable Patreon unlock feature 2024-04-27 12:45:20 +02:00
Tetrakern
8dd4bf5b8b Reformat condition for clarity 2024-04-27 12:11:02 +02:00
Tetrakern
b42219bd42 Fix comparison 2024-04-27 04:03:49 +02:00
Tetrakern
1dcab45d3d Prepare password bypass for Patreon tier check 2024-04-26 12:38:13 +02:00
Tetrakern
f4b10e1d01 Let trough already unlocked posts in password check
No need to prolong this.
2024-04-25 22:01:47 +02:00
Tetrakern
417c8baf5c Add exemptions to strip_shortcodes() 2024-04-16 14:43:48 +02:00
Tetrakern
5df5bc696f Rename files for clarity, move some functions
Bringing order to the mess, one commit at a time.
2024-04-13 16:54:33 +02:00