> 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_block_path.md). Agents can also search and read this documentation through its [MCP server](https://whoisandywhite.gitbook.io/porterwp/~gitbook/mcp).

# porter\_block\_path

Filters the theme block root. The default is `/porter/blocks`, relative to the active stylesheet directory.

```php
add_filter( 'porter_block_path', function ( string $path ) : string {
    return '/source/blocks';
} );
```

The same resolved path is used for block discovery, registration, per-block ACF JSON and block assets.
