https://github.com/generoi/wp-gds-cmp
https://github.com/generoi/wp-gds-cmp
Last synced: 25 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/generoi/wp-gds-cmp
- Owner: generoi
- License: gpl-2.0
- Created: 2022-02-02T08:25:22.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-07-19T11:48:52.000Z (almost 3 years ago)
- Last Synced: 2025-05-30T13:49:51.605Z (about 1 year ago)
- Language: PHP
- Size: 1.39 MB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# WP GDS CMP
This plugin embeds the [GDS Consent Manager](https://gds.generogrowth.com/master/?path=/story/complex-components-consentmanager--options) tag on a wp site using a theme that has the Genero Design System.
## Installation
`composer require generoi/wp-gds-cmp`
## Requirements
genero-design-system version 4.0.0-beta.16 or higher.
## Filters
### Add consents
```sh
add_filter( 'gds_cmp_consents', function($consents) {
$consents[] = [
'id' => 'my-new-consent',
'label' => __('My new consent', 'wp-gds-cmp'),
'description' => __('This is a description of my new consent.', 'wp-gds-cmp'),
'necessary' => false,
];
return $consents;
});
```
## Screenshots


