آیکن WP Consent API
افزونه رایگان نسخه 2.0.1

WP Consent API

توسعه‌دهنده: Rogier Lankhorst

توضیحات

Simple Consent API to read and register the current consent category.

تغییرات این نسخه

2.0.1
Fix: typo in ‘preferences’ category, causing comment cookies functionality to follow functional category consent, props @sjinks

2.0.0

New: Service-level consent API – allows granular consent control per service in addition to category-based consent

New: wp_has_service_consent() function to check if a specific service has consent

New: wp_is_service_denied() function to check if a specific service is explicitly denied

New: wp_set_service_consent() function to set consent for a specific service

New: wp_consent_service_changed action hook fires when service consent changes

New: JavaScript functions wp_has_service_consent(), wp_is_service_denied(), and wp_set_service_consent()

New: JavaScript event wp_consent_api_status_change_service for service consent changes

Improvement: Added type hints throughout codebase for better code quality and IDE support

Improvement: Added init() method for cleaner plugin initialization

Security: escape logged notice in _doing_it_wrong function, props @mujuonly

1.0.8

Updated tested up to

Dropped loading of translations, and loading of plugin_data, to prevent translation loading notices by WordPress 6.7, props @mujuonly

Dropped obsolete function wp_has_cookie_info, props @szepeviktor

1.0.7

Tested up to

1.0.6

Tested up to

1.0.5

tested up to

1.0.4

Improvement: only fire on change event if an actual change was detected on the consent.

1.0.3

Fix: wp_has_consent function contained a condition which caused it to always return t