Title: Editing classes
Last modified: May 23, 2019

---

# Editing classes

 *  Resolved [r0ss26](https://wordpress.org/support/users/r0ss26/)
 * (@r0ss26)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/editing-classes/)
 * Hi,
 * I have edited the ‘PDb_List_Query’ class within the ‘PDb_List_Query.class.php’
   file in order to add some functionality however I assume these changed would 
   get lost with any updates? What is the best way to modify the class without losing
   changes when updated are released?

Viewing 1 replies (of 1 total)

 *  Plugin Author [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * (@xnau)
 * [6 years, 10 months ago](https://wordpress.org/support/topic/editing-classes/#post-11565744)
 * It is advised you do not make changes directly to the plugin. I have provided
   several filters and hooks (in addition to [custom display templates](https://xnau.com/work/wordpress-plugins/participants-database/participants-database-documentation/pdb-templates/))
   that will allow you to add your changes to the plugin in a way that will survive
   updates.
 * [Participants Database API](https://xnau.com/work/wordpress-plugins/participants-database/participants-database-documentation/participants-database-api/)
 * If what you want to do cannot be accomplished using filters, hooks or custom 
   templates, then you pretty much have to just keep a local copy of your modified
   class, then whenever you want to update, you need to merge your changes into 
   the plugin class file.

Viewing 1 replies (of 1 total)

The topic ‘Editing classes’ is closed to new replies.

 * ![](https://ps.w.org/participants-database/assets/icon-256x256.jpg?rev=1389807)
 * [Participants Database](https://wordpress.org/plugins/participants-database/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/participants-database/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/participants-database/)
 * [Active Topics](https://wordpress.org/support/plugin/participants-database/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/participants-database/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/participants-database/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [xnau webdesign](https://wordpress.org/support/users/xnau/)
 * Last activity: [6 years, 10 months ago](https://wordpress.org/support/topic/editing-classes/#post-11565744)
 * Status: resolved