WP Consent API compatibility only partial?
-
Hi, working on a plugin with javascript that sets functional cookies, I was hoping to be able to use the WP Consent API to integrate the plugin with Complianz and other consent management plugins.
However, the following consent API registration (following WP Consent API instructions) does not seem to report the cookie purposes to Complianz.
add_filter( 'wp_consent_api_registered_' . \plugin_basename( __FILE__ ), '__return_true' );
add_action( 'plugins_loaded', 'my_register_cookies' );
function my_register_cookies() {
if ( function_exists( 'wp_add_cookie_info' ) ) {
wp_add_cookie_info( 'UCI42', __( 'Orange Confort+', 'orange-confort-plus' ), 'functional', __( '1 Year', 'orange-confort-plus' ), __( 'Store user toolbar settings.', 'orange-confort-plus' ) );
wp_add_cookie_info( 'uci-bl', __( 'Orange Confort+', 'orange-confort-plus' ), 'functional', __( 'Session', 'orange-confort-plus' ), __( 'Store user toolbar toggle setting.', 'orange-confort-plus' ) );
}
}The cookie expiration and function fields on the (freshly) generated Cookie Policy page remain empty, listed under “Miscellaneous – Purpose pending investigation”.
On the admin side, in the Complianz Wizard, the cookies are detected but there too, their purpose remains undefined…
Does Complianz not support this part of the WP Consent API?
- You must be logged in to reply to this topic.