- This topic has 1 reply, 2 voices, and was last updated 6 years, 10 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
WordPress Membership Plugin
Simple Membership Plugin › Forums › Simple Membership Plugin › Best Way to edit various pages created by SM Plug In?
Tagged: customization
Obviously a number of php pages are created when you install the plug in (login.php etc.). I would like to customize some of these pages. I can, of course, just edit them but it seems likely these changes would be overwritten when I update the plug in at some future point. Is there a way to avoid this? Is there a “best practices” for this sort of thing?
If you edit the plugin’s PHP files, it becomes your responsibility to also maintain proper “configuration management.”
You should maintain backups of every PHP file that you edit; as they will most likely be overwritten, when you update the plugin. But before you copy your modified files back into the updated plugin directory; the “best practice” is to compare each file that you edited, against the corresponding file to be overwritten.
You can do this, by using tools such as DIFF, DiffMerge (my favorite), or WinDIFF. If the only differences detected are your edits, then it is “safe” to simply copy your edited files back into the plugin directory. If any differences are detected, that are NOT your edits, it means you must incorporate your edits into the updated PHP file(s).