Quantcast
Channel: Question and Answer » wpdb
Viewing all articles
Browse latest Browse all 44

Is it mandatory to use $wpdb->prefix in custom tables

$
0
0

Sorry if this question is trivial. I’m just beginning to develop plugins in WordPress.

In all the tutorials I found this: while creating the custom tables, $wpdb->prefix is used.

Example:

$table_name = $wpdb->prefix . "liveshoutbox";

My question:

Is it mandatory to use $wpdb->prefix? What happens If I don’t use prefix for my custom tables?


Viewing all articles
Browse latest Browse all 44

Trending Articles