> For the complete documentation index, see [llms.txt](https://whoisandywhite.gitbook.io/porterwp/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://whoisandywhite.gitbook.io/porterwp/developer-api/hooks/porter_blocks_array.md). Agents can also search and read this documentation through its [MCP server](https://whoisandywhite.gitbook.io/porterwp/~gitbook/mcp).

# porter\_blocks\_array

Filters the complete list of discovered theme and Porter plugin blocks before registration.

```php
add_filter( 'porter_blocks_array', function ( array $blocks ) : array {
    $blocks[] = 'components/featured-quote';
    return array_values( array_unique( $blocks ) );
} );
```

Theme entries are paths relative to the configured block root, such as `components/card`. Premium plugin entries use the `porter-premium/` prefix. Return an array; Porter de-duplicates it after the hook.
