get_results
Gets the results for a specified SQL query.
Parameters
- string $sql — The SQL query to get the data.
Returns
- array|object|null — Returns an array or object based on the results given or null if no rows are found.
Since: 2.0
Source
- /includes/classes/base/class-database.php — 83