Releases
v1.0.13
Add custom services functionality
Compare
Sorry, something went wrong.
No results found
New constant GFW_CONSENT_CUSTOM_KEY = 'gfw_consent_custom_services'. Version → 1.0.13.
catalog() now merges built-in + per-site custom services and fires apply_filters('gfw_consent_services_catalog', $merged). Built-in wins on collision. Entries missing slug/patterns dropped during normalization.
New Custom services tab (nav + switch case), tab_custom_services() renderer, render_custom_service_row() helper, save_custom_services() sanitizer writing to the dedicated option. All fields: name, vendor, category, patterns, cookies, privacy URL, purpose, retention. Slug auto-generated as custom_<sanitized_name>. Empty-pattern rows dropped silently.
shortcode_policy() now renders detected ∪ custom_slugs — custom entries appear immediately after save, without waiting for the next daily scan.
Add-fieldset + Remove-fieldset handlers using the element for cloning. New rows get unique placeholder indexes; server re-indexes on save.
Styling for the fieldset block (subtle border, gray background, compact form-table inside, red Remove button).
You can’t perform that action at this time.