WordPress Get Table Prefix In code


/**
* get_table_prefix
*
* Retrieve the WP table prefix
*
* @since 1.0.0
* @param @input the url of the media file
*/

public static function get_table_prefix() {
global $wpdb;
$table_prefix = $wpdb->posts;
// get posts table: $table_prefix = $wpdb->posts;
return $table_prefix;
}