Skip to content

cookieconsent: implement hook for requesting user choice #1071

@McShelby

Description

@McShelby

The theme will provide the owner of the site with a mechanism to request cookie consent.

The owner will be responsible to implement the request mechanism and return the users choice.

The theme will do the cookie handling. If it discovers missing consent or the cookie has expired (after 31 days), a hook will be called. In the default implementation, the hook always returns true.

The owner will have to override the hook, give the reader notice and return true or false based on the readers choice. The theme will handle the rest.

It will only be possible to turn off all storage facilities of the theme all together.

Third-party-scripts (every library stored in subdirectories of assets/js/) may come with their own storage and will not be affected by the users choice. This lies out of the scope and the possibilities of the theme's code.

As discussed in #1069

Metadata

Metadata

Assignees

Labels

featureNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions