Title: Corrupt code examples in description/FAQ
Last modified: June 3, 2020

---

# Corrupt code examples in description/FAQ

 *  [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * (@ov3rfly)
 * [6 years ago](https://wordpress.org/support/topic/corrupt-code-examples-in-description-faq/)
 * Code examples [in plugin description](https://wordpress.org/plugins/eu-cookie-law/)
   at “Advanced Features” and in “FAQ” appear to be corrupt and/or have wrong quotes.
 * Bad:
 *     ```
       if ( function_exists(‘cookie_accepted’) && cookie_accepted() ) {
           // Your code
       }
       ```
   
 * Good:
 *     ```
       if ( function_exists('cookie_accepted') && cookie_accepted() ) {
           // Your code
       }
       ```
   
 * Bad:
 *     ```
       [cookie height=”100px” width=”100%” text=”Hi WordPress”] //My code [/cookie]
       ```
   
 * Good:
 *     ```
       [cookie height="100px" width="100%" text="Hi WordPress"] //My code [/cookie]
       ```
   
 * Bad:
 *     ```
       Ex. add class=”eucookielaw_exclude” or a comment.
       ```
   
 * Good:
 *     ```
       Ex. add class="eucookielaw_exclude" or a comment.
       ```
   
 * Bad:
 *     ```
       if ( !isset( $_COOKIE[‘euCookie’] ) ){ return; }
       ```
   
 * Good:
 *     ```
       if ( !isset( $_COOKIE['euCookie'] ) ){ return; }
       ```
   
 * Plugin version 3.1.2

The topic ‘Corrupt code examples in description/FAQ’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/eu-cookie-law_39293e.svg)
 * [EU Cookie Law for GDPR/CCPA](https://wordpress.org/plugins/eu-cookie-law/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/eu-cookie-law/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/eu-cookie-law/)
 * [Active Topics](https://wordpress.org/support/plugin/eu-cookie-law/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/eu-cookie-law/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/eu-cookie-law/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Ov3rfly](https://wordpress.org/support/users/ov3rfly/)
 * Last activity: [6 years ago](https://wordpress.org/support/topic/corrupt-code-examples-in-description-faq/)
 * Status: not resolved