ThomasDepole / wordpress-child-plugin-tool

This tool allows you to modify a Wordpress plugin without losing the ability to update the plugin. This tool works like Wordpress child themes where you can override files that exist in the child plugin by creating a copy of the file and add files to the plugin by creating new files. You can also revert all the changes you made to the plugin.
61 stars 18 forks source link

Hi! #2

Open MarianoGenco opened 3 years ago

MarianoGenco commented 3 years ago

Nice Try! Is great the tool!

I have a question about it. What happens if you update the main plugin and for some reason there is any part that changes in the line of code?

Then by putting apply.php it will put the modified files with the risk that some file is not the same as the main plugin due to its update.

I feel that the tool has potential, I even think of adding some things to it.

I only have this doubt that the main plugin is updated and just change a file that it modifies.

The second question if after apply.php I have to delete everything and only leave the modifiers folder?

Basically then it only replaces modified files that I can save on the hosting automatically.

It could be added to make a reading of the previous original file and the original file after the update. If the 2 files are the same just there, execute the changes (Apply.php) Otherwise, do not do it and warn that the new file in the updated plugin has been changed by it.