Sets the table prefix for the WordPress tables.
public set_prefix ( string $prefix, boolean $set_table_names = true ) : string | WP_Error | ||
$prefix | string | Alphanumeric name for the new prefix. |
$set_table_names | boolean | Optional. Whether the table names, e.g. wpdb::$posts, should be updated or not. |
return | string | WP_Error | Old prefix or WP_Error on error |