> For the complete documentation index, see [llms.txt](https://docs.acpt.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.acpt.io/developers/functions/get_acpt_table_object.md).

# get\_acpt\_table\_object

Get a custom table object representation

Retrieve a custom table definition as a plain object.

### Usage

```php
$table = get_acpt_table_object('products');
```

### Parameters

| Parameter   | Type   | Required | Description               |
| ----------- | ------ | -------- | ------------------------- |
| `tableName` | string | Required | Machine name of the table |

### Return

| Type        | Description                              |
| ----------- | ---------------------------------------- |
| `\stdClass` | The table definition object              |
| `null`      | When the table was not found or on error |
