BuddyDev

Search

How to safely modify buddpress files?

  • Participant
    Level: Enlightened
    Posts: 47
    Alex on #52894

    Hi,
    to resolve a problem with the old TinyMce editor buddypress uses, I had to modify class-bp-xprofile-fiel-type-textarea.php.

    But this file might be overwritten on next update. So whats the best way to handle this? Copy it to child theme folder using the same folder structure?
    Does this protect it from being overwritten on updates and executed instead of the original one?

    Or do I have to use a filter? the_content?? I deleted some functions on this file, so I don’t know if and what kind of filter I can use.

  • Keymaster
    (BuddyDev Team)
    Posts: 24697
    Brajesh Singh on #52898

    Hi Alex,
    Thank you for the question. Changing a core file of any plugin is bad as It will be overwritten in their next update.

    I have replied to your other post with suggestion and some question to assist you further.

    Please take a look.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: not resolved