Title: Cookie exclusion using php code
Last modified: January 4, 2021

---

# Cookie exclusion using php code

 *  Resolved [Antonio](https://wordpress.org/support/users/glemisoft/)
 * (@glemisoft)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cookie-exclusion-using-php-code/)
 * Hello, I know that is possible to add exclusions using cookies. But I have to
   insert this exclusion using php code in my custom plugin and not using user interface(
   for example in MY plugin activation code I want to add this exclusion).
    Because
   I want to suggest this cache plugin to my customers (that uses my plugin) ensuring
   them that exclusions will be set automatically!
 * Thank you

Viewing 1 replies (of 1 total)

 *  Plugin Author [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * (@emrevona)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/cookie-exclusion-using-php-code/#post-13863256)
 * you cannot do it because a page is saved as a static html file when it is cached
   so PHP and Mysql do not work.

Viewing 1 replies (of 1 total)

The topic ‘Cookie exclusion using php code’ is closed to new replies.

 * ![](https://ps.w.org/wp-fastest-cache/assets/icon-256x256.png?rev=2064586)
 * [WP Fastest Cache - WordPress Cache Plugin](https://wordpress.org/plugins/wp-fastest-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-fastest-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-fastest-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-fastest-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-fastest-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-fastest-cache/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Emre Vona](https://wordpress.org/support/users/emrevona/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/cookie-exclusion-using-php-code/#post-13863256)
 * Status: resolved