• 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?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Note: all the rest of the consent api seems to work. The javascript and cookies are effectively being blocked until after consent is obtained. Only the information provided via wp_add_cookie_info() seems to be ignored by Complianz.

    Plugin Support leonardoiub

    (@leonardotamion)

    Hello,

    thanks for your message.

    The main purpose of WP Consent API with our plugin is to “standardizes the communication of accepted consent categories between plugins” so as far I understood it is working as expected, in order to know if this parameter “wp_add_cookie_info()” could be respected I should ask the dev team.

    In the meantime could you please provide me the website url you’re talking about? Lastly did you check our guide related to WP Consent API https://complianz.io/wp-consent-api/?

    Thanks in advance for your answer

    Thread Starter Rolf Allard van Hagen

    (@ravanh)

    Hi, thanks for relaying this to the devs ??

    Yes I read the Complianz documentation but I can only provide a temporary dev site URL (if you wish). I’m working on a new plugin (to be published on wp.org) that will integrate a third-party script that uses certain cookies. I added code (similar to the above in the original post) to make the plugin compatible with the Consent API. But noticed that the Cookie info (added via wp_add_cookie_info) seems to be ignored by Complianz.

    Maybe that is because Complianz prefers to get its data from the centralized cookie database instead?

    Plugin Support leonardoiub

    (@leonardotamion)

    Hello,

    I confirm Complianz takes all the information regarding to cookies from cookiedatabase.org, it’s not something we directly manage (unless you create a custom service which you can setup alone).

    So if you can you should take all the information directly from cookiedatabase.org

    Plugin Support leonardoiub

    (@leonardotamion)

    Hi,

    I talk with the dev team and unfortunately you can’t do that with our plugin + WP Consent API, you should use directly the API of cookiedatabase.org

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.