📅  最后修改于: 2022-03-11 14:54:25.328000             🧑  作者: Mango
function connect_another_db() {
global $seconddb;
$seconddb = new wpdb(USERNAME, PASSWORD, DATABASE_NAME, HOSTNAME);
}
add_action('init', 'connect_another_db');