Get wordpress database table prefix

0.29K views
no comments
5 Jan 2014 9:37 pm

make $wpdb global variable

global $wpdb;
//NOW GET YOUR WORDPRESS DATABASE TABLE PREFIX

$prefix =  $wpdb->base_prefix;
///`WP_` IS DEFAULT PREFIX

NOTE:Your Email Address will be not shown and please do not add spamming comments because here is REL="NOFOLLOW" on your links and comments also moderated shown.
<code>Put html css or any language code under this tag</code>