Skip to content

1.34.0

Choose a tag to compare

@BenKalsky BenKalsky released this 01 Sep 22:36
· 3 commits to main since this release
b34813b

Content Control learns the standalone plugin's global restrictions.

Until now the module restricted content per page, per menu item, or the whole
site behind login. This release adds restriction rules as their own entities:
each rule picks content (post types, selected IDs, taxonomies, archives, page
templates - combined with AND/OR and an optional group), names an audience
(logged-in/out, with any/match/exclude role matching), and decides what
refusal looks like - redirect to login/home/a URL, replace with a page, or
show the message, with per-archive hiding or replacement, forced hiding from
search results, and teaser excerpts above the notice.

Classic widgets gain visibility controls, and the [dpt_restrict] shortcode
gains excluded_roles, inline and class. Per-page settings, menu visibility and
whole-site protection keep working exactly as before - and a per-page setting
always wins over a global rule.

Manage the rules under Digitizer Pro Tools → Content Control → Restrictions.
Order is priority: the first matching rule wins.

PR #43 - 12 Codex review rounds, 22 findings addressed; the cross-page
pagination-totals limitation of post-query filtering is tracked as #44.