Answers for "connect another database in wordpress"

PHP
0

connect another database in wordpress

function connect_another_db() {
    global $seconddb;
    $seconddb = new wpdb(USERNAME, PASSWORD, DATABASE_NAME, HOSTNAME);
}
add_action('init', 'connect_another_db');
Posted by: Guest on August-09-2021

Code answers related to "connect another database in wordpress"

Browse Popular Code Answers by Language