table_prefix

This variable contains the prefix used for naming tables in the database used with WordPress. It is defined in /wp-config.php and is set to “wp_” by default.

This variable comes into play when there are multiple installations of WordPress. The prefix can then be used to identify tables corresponding to a specific installation.

Plugin developers should use this global variable if they want to create separate tables for their plugin. Instead of using some hardcoded value, they should use this global variable. Here is the codex document related to this.

Back to the full list of global variables.

Technorati tags:

About these ads

One Response to “table_prefix”


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: