Title: Need Filter | Disable PHP in Plugins
Last modified: August 21, 2021

---

# Need Filter | Disable PHP in Plugins

 *  [jetxpert](https://wordpress.org/support/users/jetxpert/)
 * (@jetxpert)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/need-filter-disable-php-in-plugins/)
 * Good Day!
 * Your plugin has a safety feature where we can “Disable PHP in Plugins.” (see 
   screenshot below)
 * Feature Path:
 * `WP Dashboard > Security > Settings > Advanced > System Tweaks`
 * When we activate noted feature, certain features of the plugin wpDiscuz no longer
   work (i.e., voting, ratings, etc.)
 * Kindly provide a filter (code snippet) where we can maintain your plugin’s feature
   activated while excluding target plugins.
 * Thank you!
 * ![ithemes-security-disable-php-filter](https://i0.wp.com/i.ibb.co/RDvDSVn/ithemes-
   security-disable-php-filter.png?ssl=1)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Thread Starter [jetxpert](https://wordpress.org/support/users/jetxpert/)
 * (@jetxpert)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/need-filter-disable-php-in-plugins/#post-14791211)
 * More Information:
 * This is the htaccess code added by iThemes when “Disable PHP in Plugins” is activated:
 *     ```
       # Disable PHP in Plugins - Security > Settings > System Tweaks > PHP in Plugins
       RewriteRule ^wp\-content/plugins/.*\.(?:php[1-7]?|pht|phtml?|phps)\.?$ - [NC,F]
       ```
   
 * How can we add an exclusion to the above code for one or several plugins?
 * Thank you!
 *  Thread Starter [jetxpert](https://wordpress.org/support/users/jetxpert/)
 * (@jetxpert)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/need-filter-disable-php-in-plugins/#post-14791224)
 * One last thing:
 * The [iThemes article that describes the above feature](https://help.ithemes.com/hc/en-us/articles/202876710-iThemes-Security-System-Tweaks)
   needs to be corrected.
 * Currently, it states:
 * > This will not affect plugin or theme functionality.
 * Not true. Please change it!
 * Thank you!
 *  Thread Starter [jetxpert](https://wordpress.org/support/users/jetxpert/)
 * (@jetxpert)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/need-filter-disable-php-in-plugins/#post-14830069)
 * **Update:**
 * Regrettably, we deleted this plugin and switched to one that offers better support.
 * Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Need Filter | Disable PHP in Plugins’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

## Tags

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

 * 3 replies
 * 1 participant
 * Last reply from: [jetxpert](https://wordpress.org/support/users/jetxpert/)
 * Last activity: [4 years, 8 months ago](https://wordpress.org/support/topic/need-filter-disable-php-in-plugins/#post-14830069)
 * Status: not resolved