Title: Edit php file within plugin
Last modified: September 1, 2016

---

# Edit php file within plugin

 *  Resolved [joefinnerty_123](https://wordpress.org/support/users/joefinnerty_123/)
 * (@joefinnerty_123)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/edit-php-file-within-plugin/)
 * I need to edit a couple of files in the plugin php code.
 * Can I setup a directory structure under my theme directory,identical to the plugin
   directory, so that I can place the edited files there and the plugin picks them
   up. Then when there is a new release of the plugin it doesn’t overwrite my changes.
 * i have done this with many other plugins but this one does not seem to work that
   way.
 * [https://wordpress.org/plugins/email-subscribers/](https://wordpress.org/plugins/email-subscribers/)

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

 *  Plugin Author [storeapps](https://wordpress.org/support/users/storeapps/)
 * (@storeapps)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/edit-php-file-within-plugin/#post-7654254)
 * [@joefinnerty_123](https://wordpress.org/support/users/joefinnerty_123/),
 * Can you please let us know what changes you want that requires you to edit plugin’s
   php files?
 * > Can I setup a directory structure under my theme directory,identical to the
   > plugin directory, so that I can place the edited files there and the plugin
   > picks them up. Then when there is a new release of the plugin it doesn’t overwrite
   > my changes.
 * We haven’t tried that. So, I’m not sure if it works.
 * > i have done this with many other plugins but this one does not seem to work
   > that way.
 * Can you let us know for which other plugins you have done it? Are they available
   freely on WordPress.org? If so, can you give us names so we can check it.
 *  Thread Starter [joefinnerty_123](https://wordpress.org/support/users/joefinnerty_123/)
 * (@joefinnerty_123)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/edit-php-file-within-plugin/#post-7654256)
 * Changes the to the admin forms for one.
 * sendmail.php
 * It does not work will test further.
 * WooCommerce, Tribes Event Calendar, Memberships Pro, Most every theme

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

The topic ‘Edit php file within plugin’ is closed to new replies.

 * ![](https://ps.w.org/email-subscribers/assets/icon-256x256.png?rev=2274172)
 * [Email Subscribers & Newsletters - Email Marketing, Post Notifications & Newsletter Plugin for WordPress](https://wordpress.org/plugins/email-subscribers/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/email-subscribers/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/email-subscribers/)
 * [Active Topics](https://wordpress.org/support/plugin/email-subscribers/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/email-subscribers/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/email-subscribers/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [joefinnerty_123](https://wordpress.org/support/users/joefinnerty_123/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/edit-php-file-within-plugin/#post-7654256)
 * Status: resolved