Title: Hard Coded WordPress Database Tables
Last modified: August 21, 2016

---

# Hard Coded WordPress Database Tables

 *  [Jamie Madden](https://wordpress.org/support/users/digitalchild/)
 * (@digitalchild)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/hard-coded-wordpress-database-tables/)
 * Hello,
 * It appears that your code is using hard coded wordpress prefixes meaning that
   when I’m not using the wp_ prefix my code is breaking.
 * You should be referring to the tables with $wpdb->prefix instead of ‘wp_’
 * Can you update your plugin to fix this please?
 * thanks.
 * [http://wordpress.org/plugins/send-email-only-on-reply-to-my-comment/](http://wordpress.org/plugins/send-email-only-on-reply-to-my-comment/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [yasirwazir](https://wordpress.org/support/users/yasirwazir/)
 * (@yasirwazir)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/hard-coded-wordpress-database-tables/#post-4519547)
 * Hello,
 * I was first using proper database code but there was getting a warning or error,
   don’t remember what it was.
 * I will try to update the code.
 *  [Lauren @ Once Coupled](https://wordpress.org/support/users/laurenng/)
 * (@laurenng)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/hard-coded-wordpress-database-tables/#post-4519598)
 * I would really love to see this addition! This is definitely a plugin I need 
   for my site, but for security reasons I’m not using wp_.
 * I even tried hacking my way through this (yeah, I have no idea what I’m doing)
   by replacing all wp_ with my-database-name_ or just the $wp_ with $my-database-
   name_ but no dice.
 * Thanks,
    Lauren
 *  [X-Raym](https://wordpress.org/support/users/x-raym/)
 * (@x-raym)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/hard-coded-wordpress-database-tables/#post-4519619)
 * That is surely why the plugin doesn’t work for me either =/
 *  [Marc Bijl](https://wordpress.org/support/users/newoceans/)
 * (@newoceans)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/hard-coded-wordpress-database-tables/#post-4519620)
 * Just wondering, has the code been updated?
 * For security reasons, it’s good to change the database prefix…

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Hard Coded WordPress Database Tables’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/send-email-only-on-reply-to-my-comment.
   svg)
 * [Send email only on Reply to My Comment](https://wordpress.org/plugins/send-email-only-on-reply-to-my-comment/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/send-email-only-on-reply-to-my-comment/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/send-email-only-on-reply-to-my-comment/)
 * [Active Topics](https://wordpress.org/support/plugin/send-email-only-on-reply-to-my-comment/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/send-email-only-on-reply-to-my-comment/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/send-email-only-on-reply-to-my-comment/reviews/)

## Tags

 * [code](https://wordpress.org/support/topic-tag/code/)
 * [database](https://wordpress.org/support/topic-tag/database/)

 * 4 replies
 * 5 participants
 * Last reply from: [Marc Bijl](https://wordpress.org/support/users/newoceans/)
 * Last activity: [11 years, 8 months ago](https://wordpress.org/support/topic/hard-coded-wordpress-database-tables/#post-4519620)
 * Status: not resolved