Edit Core Files of Membership 2

Is there anyway I can customize core files and not lose my customization? I'd like to customize "ms_invoice" and other files associated with the plugin.

  • Nastia

    Hello Kendall Cuellar ,

    Thank you for your question.

    Once the plugin's update will be out and you've customized the plugin's files all the changes will be lost. So if you need an additional feature, the mu-plugin is the best solution to fo with.

    The invoice files can be found in the directories shown bellow:

    /membership/app/model/class-ms-model-invoice.php
    /membership/app/template/single-ms_invoice.php

    If you need to customize the invoice template only, copy single-ms_invoice.php to your current theme folder and edit the template from there. Better to create a child theme and add the file there, so it won't be lost after an update.

    Customizing a template will require some PHP knowledge, if you are not familiar with PHP, please feel free to post a new job in the Jobs & Pros section so a skillful developer can do this for you.

    Hope this helps!

    Cheers,
    Nastia