GDPR Suggestion

Hi Guys,

First of all, thanks for this Amazing Framework, you are really doing GREAT work. :smiley:

my client wants to add a GDPR cookie consent bar, he tried to install this plugin but it didn’t work and it doesn’t support Rest API.

is there any suggestion on how can I make this? I just don’t want to build everything from scratch.

thanks so much

1 Like

Hi @yasserzakaria1993

Thanks for your kind remarks, and welcome to the forum.

That plugin uses a custom post type, called cookielawinfo, that you can add to the WordPress REST-API.

Here is the WordPress developer documentation on adding an existing post type to the REST API:

In the example they give you would replace book with cookielawinfo. You can either add the code snippet to your theme’s functions.php file, or create a custom plugin containing the code snippet.

Good luck, and do let us know how you get on or if we can help your further.