Title: Eval() feature on class-wpcode-snippet-execute.php
Last modified: February 18, 2025

---

# Eval() feature on class-wpcode-snippet-execute.php

 *  Resolved [clip1492](https://wordpress.org/support/users/clip1492/)
 * (@clip1492)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/eval-feature-on-class-wpcode-snippet-execute-php/)
 * I’m about to disable the PHP eval() function with Suhosin or similar for security
   reasons.
 * However I found on includes/class-wpcode-snippet-execute.php that eval() is still
   being used.
 * QUESTIONS:
    - What consequences will happen when eval() is disabled at PHP level?
    - Will the code snippets be rendered anyway?
    - Or what exact features will not work?
    - Do you plan to get rid of eval() on future versions?
 *  -  This topic was modified 1 year, 3 months ago by [clip1492](https://wordpress.org/support/users/clip1492/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * (@gripgrip)
 * [1 year, 3 months ago](https://wordpress.org/support/topic/eval-feature-on-class-wpcode-snippet-execute-php/#post-18315220)
 * Hi [@clip1492](https://wordpress.org/support/users/clip1492/),
 * Without eval, WPCode will not be able to execute any PHP snippet. All other code
   types will work the same.
 * We are not planning to get rid of eval at this time, as that’s needed to execute
   code dynamically.

Viewing 1 replies (of 1 total)

The topic ‘Eval() feature on class-wpcode-snippet-execute.php’ is closed to new 
replies.

 * ![](https://ps.w.org/insert-headers-and-footers/assets/icon-256x256.png?rev=2758516)
 * [WPCode - Insert Headers and Footers + Custom Code Snippets - WordPress Code Manager](https://wordpress.org/plugins/insert-headers-and-footers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insert-headers-and-footers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insert-headers-and-footers/)
 * [Active Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insert-headers-and-footers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insert-headers-and-footers/reviews/)

## Tags

 * [eval](https://wordpress.org/support/topic-tag/eval/)

 * 1 reply
 * 2 participants
 * Last reply from: [Mircea Sandu](https://wordpress.org/support/users/gripgrip/)
 * Last activity: [1 year, 3 months ago](https://wordpress.org/support/topic/eval-feature-on-class-wpcode-snippet-execute-php/#post-18315220)
 * Status: resolved