Created
February 24, 2019 14:23
-
-
Save mustafauysal/b22476e2bcb4f0165cacf43e8968d7e7 to your computer and use it in GitHub Desktop.
different dataset for table
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$wpdb->add_database( array( | |
'host' => 'global.db.example.com', | |
'user' => 'globaluser', | |
'password' => 'globalpassword', | |
'name' => 'globaldb', | |
) ); | |
$wpdb->add_database( array( | |
'host' => '192.168.1.5', | |
'user' => DB_USER, | |
'password' => DB_PASSWORD, | |
'name' => 'mycustomdatabase', | |
'write' => 1, | |
'read' => 1, | |
'dataset' => 'customdataset', | |
'timeout' => 0.5, | |
) ); | |
$wpdb->add_table( 'customdataset', 'wp_my_custom_table' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment