Title: Changing default cookie prefix
Last modified: December 16, 2025

---

# Changing default cookie prefix

 *  Resolved [jpimagines](https://wordpress.org/support/users/jpimagines/)
 * (@jpimagines)
 * [6 months, 1 week ago](https://wordpress.org/support/topic/changing-default-cookie-prefix/)
 * By default, the consent category cookies set by this plugin use the prefix `wp_consent`(
   e.g. `wp_consent_functional`). However, some caching solutions, including those
   provided by some WordPress hosts, will exempt pages from cache if any cookies
   starting with `wp` are present. I know that Pressable exempts pages from caching
   that way: [https://pressable.com/knowledgebase/how-does-batcache-page-caching-work/](https://pressable.com/knowledgebase/how-does-batcache-page-caching-work/)
 * I understand that there is a `wp_consent_cookie_prefix` filter that can be used
   to programmatically change the default cookie prefix. Using that requires some
   level of coding familiarity though, and also assumes you know that the prefix
   can or should be changed.
 * Would it be possible to have the default prefix changed to not start with `wp`?
   Or alternatively include a UI setting to change the prefix?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * (@rogierlankhorst)
 * [6 months ago](https://wordpress.org/support/topic/changing-default-cookie-prefix/#post-18760018)
 * As this is intended for core. The wp_ prefix seems the most logical choice. Additionally,
   suddenly changing this might break integrations.
 * A user interface is not something that belongs in this plugin, as there is nothing
   to configure. Adding it for this one setting seems a bit overkill.
 * For this particular use case I’d say the developers of the caching tools should
   exclude the consent api cookies, which is the simplest solution.
 * Alternatively, someone could create a simple add-on plugin to handle this.
 * For now, I think the filter solution you mentioned is the best approach.

Viewing 1 replies (of 1 total)

The topic ‘Changing default cookie prefix’ is closed to new replies.

 * ![](https://ps.w.org/wp-consent-api/assets/icon-256x256.png?rev=2239568)
 * [WP Consent API](https://wordpress.org/plugins/wp-consent-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-consent-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-consent-api/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-consent-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-consent-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-consent-api/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Rogier Lankhorst](https://wordpress.org/support/users/rogierlankhorst/)
 * Last activity: [6 months ago](https://wordpress.org/support/topic/changing-default-cookie-prefix/#post-18760018)
 * Status: resolved