> 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_block_object.md).

# get\_acpt\_block\_object

Get a dynamic block object representation

Get a dynamic block object representation by name.

### Usage

```php
$block = get_acpt_block_object('my_block');

if ($block) {
    echo $block->name;
}
```

### Parameters

| Parameter   | Type   | Required | Description    |
| ----------- | ------ | -------- | -------------- |
| `blockName` | string | Required | The block slug |

### Return

| Type        | Description                                                 |
| ----------- | ----------------------------------------------------------- |
| `\stdClass` | The block object, including name, title, icon, and keywords |
| `false`     | If no block with the given name exists                      |
