get_row( "SELECT * FROM users WHERE user_id = '123'", ARRAY_A ); echo $row['username']; ?>
prefix . 'my_table'; $row = $wpdb->get_row( "SELECT * FROM $table_name WHERE id = 1" ); echo $row->name; ?>In this example, the table name is generated dynamically using the WordPress `$wpdb` global variable. The `get_row` function is used to retrieve a single row of data from the table where the ID is equal to 1. The data is accessed using the object notation (`->`) and the column name. The package library that provides the `get_row` function is the WordPress Database Class (`wpdb`). It is a PHP class that provides an object-oriented interface for interacting with the WordPress database.