跳到内容

Orejime

v0.1.0

Boscop · 2026年6月29日 上架

This plugin integrates Orejime, a lightweight and accessible consent manager, to WordPress.

正在使用
10 以下
评分
暂无
累计下载
313
最近更新
2026年6月29日
需要 WordPress 5.5+已测试到 7.0.9PHP 7.0+

贡献者

The plugin provides built-in integrations to core WordPress functionalities and major analytics plugins, as to help implementing a consent banner.

Major WordPress plugins are automatically discovered and added to the banner.

One can then fine tune the configuration or even add custom entries.

Integrations

Besides letting you manually configure purposes, the plugin provides built-in integrations to core WordPress functionalities and major analytics plugins.

Contextual consent

A custom editor block allows one to block any content until the user gives their explicit consent.
This would display a placeholder allowing the user to do so on the spot.
When they does, the placeholder is replaced by the intended content.

This block can be used around any other block or list of blocks, as the core group block.

The contextual consent placeholder can be added automatically to any embed blocks.

Legal disclaimer

Orejime is developed and updated by the Boscop teams in accordance with regulatory developments and European and French recommendations (particularly those of the EDPB and the CNIL).

However, the compliance of a cookie manager largely depends on the solution’s configuration (from the handling of each cookie, to color choices, and the information provided to users).

It is your responsibility to verify your site’s compliance, and Boscop cannot be held liable for any compliance issues arising from users of the Orejime plugin.

Development

Architecture

The plugin revolves around the concept of “integrations”.
An integration is a bridge between Orejime and a WordPress plugin or native feature.

Every integration derives from the base Integration class.
They must each have unique identifiers and names, and should provide a way to tell if their target integration is currently active.
They hook into their target to alter their output, typically as to modify scripts so they can be handled by Orejime.

For every active integration, Orejime would register an associated purpose, which allows for customizing the info that is shown to the end user.

Initial setup

npm install # installs build & run environment
npm run up # starts docker containers
npm run composer install # installs backend dev environment

Build

npm start # builds assets and watches for changes

Quality

npm run lint # lints JS and PHP code
npm run format  # formats JS and PHP code

Orejime integration

The orejime library is provided by the plugin.
Its source code is available at GitHub.
Build files are sourced from the official npm module, installed via npm, then copied over to the public folder via a build task:

npm run package-orejime

This task is run automatically by other build tasks such as npm start & npm run build.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums