Releases: WordPress/wp-consent-level-api
Releases · WordPress/wp-consent-level-api
v2.0.0
= 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_changedaction hook fires when service consent changes - New: JavaScript functions
wp_has_service_consent(),wp_is_service_denied(), andwp_set_service_consent() - New: JavaScript event
wp_consent_api_status_change_servicefor 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
v1.0.7
v1.0.7