tombenner/wp-mvc

How can I create a table with custom prefix like wp_bms_products

Closed this issue · 3 comments

I am trying to figure how to do this in order to keep my tables together and prefixed via the plugin. Right now, I can only do wp_products and I would like to do wp_bms_products. The views throws an error that field name doesn't exists and I am sure it's because of the naming of the table. Thank you.

I looked into the core and found you can override the table name by setting $table = '{prefix}bms_products' in my modle.

@cyberscribe Thank you, I went into the core and saw that you can do that. Either way thank you so much!