How consent works
The four categories
- Necessary: essential site functions and the consent preference itself. Always enabled.
- Statistics: optional usage measurement and analytics.
- Marketing: optional advertising, remarketing and related services.
- Other: additional optional integrations, such as recognized map or video embeds.
Use the category that reflects the service’s real purpose. Category IDs in code are necessary, statistics, marketing and other.
Interface example

What the buttons do
Accept saves the selected categories. In the expanded policy panel this action is labeled Accept Selected. The separate Accept All button, when enabled, allows every category. Do not accept saves necessary-only preferences.
Closing an optional notice does not grant optional consent. When Choice required is enabled, closing the notice saves necessary-only preferences.
Saved preferences
The first-party cookiewp_consent cookie stores category choices, a policy version and an expiry timestamp. Its default duration is 180 days, configurable from 1 to 365 days. Expired, unreadable or outdated choices do not grant optional permission.
Changes to scripts, the configured inventory, duration or automatic blocking settings can change the policy version and prompt visitors to choose again.
Changing your mind
Visitors can reopen preferences through the edit button or a #cookiewp-edit link. Withdrawing previously granted permission updates consent, attempts to remove accessible recognized first-party cookies and reloads the page. This reload prevents already-running optional code from continuing in the current document. CookieWP cannot delete HttpOnly or third-party cookies.
Hidden category switches
Category controls can be configured separately for the compact notice and expanded policy. When switches are hidden, Accept preserves saved choices or the configured default selections. Scripts for accepted categories can activate immediately without a page reload. Choosing Do not accept still saves necessary-only consent.