Title: PHP API question
Last modified: April 16, 2026

---

# PHP API question

 *  Resolved [markisu72](https://wordpress.org/support/users/markisu72/)
 * (@markisu72)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/php-api-question/)
 * Hi,
 * I’m trying to make sense of the PHP-API in order to achieve the following:
   1.
   determine, if the current user has given consent for a particular cookie2. conditionally
   disable a content block on a certain pageThe API explanation is a pretty ‘vanilla’
   so to speak 😀Could you kindly point me into the right direction?I doubt that
   without already deeper knowledge, it is quite impossible to get started.ThxMarkus

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * (@mguenter)
 * [1 month, 1 week ago](https://wordpress.org/support/topic/php-api-question/#post-18889633)
 * Hey [@markisu72](https://wordpress.org/support/users/markisu72/) !
 * If the unblocking itself has to happen immediately on client-side, recommend 
   using the JavaScript method here instead of relying on the PHP server-side part(
   to avoid e.g., caching issues):
    - [https://docs.devowl.io/real-cookie-banner/js/functions/frontend-packages_cookie-consent-web-client.unblock.html](https://docs.devowl.io/real-cookie-banner/js/functions/frontend-packages_cookie-consent-web-client.unblock.html)
    - [https://docs.devowl.io/real-cookie-banner/js/functions/frontend-packages_cookie-consent-web-client.consent.html](https://docs.devowl.io/real-cookie-banner/js/functions/frontend-packages_cookie-consent-web-client.consent.html)

Viewing 1 replies (of 1 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-api-question%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/real-cookie-banner/assets/icon-256x256.png?rev=2419813)
 * [Real Cookie Banner: GDPR & ePrivacy Cookie Consent](https://wordpress.org/plugins/real-cookie-banner/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/real-cookie-banner/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/real-cookie-banner/)
 * [Active Topics](https://wordpress.org/support/plugin/real-cookie-banner/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/real-cookie-banner/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/real-cookie-banner/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Matthias Günter](https://wordpress.org/support/users/mguenter/)
 * Last activity: [1 month, 1 week ago](https://wordpress.org/support/topic/php-api-question/#post-18889633)
 * Status: resolved