get table prefix
Create any PHP file, outside WordPress,
<?php
require('wp-blog-header.php');
echo $wpdb->base_prefix;
?>
Please use correct path for wp-blog-header.php
in require
<?php
$root = realpath($_SERVER["DOCUMENT_ROOT"]);
require "$root/wp-blog-header.php";
function get_table_prefix() {
global $wpdb;
$table_prefix = $wpdb->prefix . "outsider_plugin";
return $table_prefix;
}
// echo get_table_prefix();
?>
Thanks mack, your idea help me to solve the problem, using a similar approach.