WordPress.org

Forums

[resolved] What do I use for an overall $table_prefix variable? (2 posts)

  1. copperblade
    Member
    Posted 4 years ago #

    I have a short plugin and I was hard-coding wp_ for the table prefix. Someone brought this up, and I can't seem to get that in a variable. $table_prefix just gives me wp_#_ which isn't what I want--I need to crawl across all the blogs.

  2. copperblade
    Member
    Posted 4 years ago #

    Found it!

    $wpdb->base_prefix

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.