There is no explicit methodWP 4. It stores link identifier in5 had introduced $wpdbwpdb->dbh>close()
field, so I guess you could use mysql_close()
on itmethod to close connection in current instance.
Why do you need it btw? If you want to reuse $wpdb
it is better to create separate wpdb
object instead.Old answer
There is no explicit method. It stores link identifier in $wpdb->dbh
field, but it is protected, so not convenient to run close on.