use_mysqli()
use_mysqli() : boolean|object
Support old & new versions of WordPress (3.9+).
Returns
boolean|object —Instantiated object of \mysqli.
Class MainWP_Child_DB
Handles all of the Child Plugin's DB functions.
to_query(string $query, string $link) : boolean|\mysqli_result|resource
Run a mysqli query & get a result.
string | $query | An SQL query. |
string | $link | A link identifier. |
For successful SELECT, SHOW, DESCRIBE or EXPLAIN queries, mysqli_query() will return a mysqli_result object. For other successful queries mysqli_query() will return TRUE. Returns FALSE on failure.
connect(string $host, string $user, string $pass) : false|\mysqli|resource
Connect to Child Site Database.
string | $host | Can be either a host name or an IP address. |
string | $user | The MySQL user name. |
string | $pass | The MySQL user password. |
object which represents the connection to a MySQL Server or false if an error occurred.