How to avoid the custom code were lost?


I wrote some custom code in 2 file marketpress.php and template-functions.php, and add new theme style and language file. But when I upgraded Marketpress plugin, all my custom code and my files were lost. How can I solve this problem?


  • aristath
    • Recruit

    Hello there @tonyle,

    I’m afraid that no, when any plugin or theme gets updated in WordPress, ALL the files are replaced with the new ones.

    This is why we always suggest building the functionality you want as a new plugin that will behave as an addon to MarketPress or any other plugin that you want to affect…

    Did you not have a backup of your customizations?



Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.