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

# porter\_blockstyles\_path

Filters the directory from which Porter reads custom block-style CSS.

```php
add_filter( 'porter_blockstyles_path', function ( string $directory, string $block_name, string $style_name ) : string {
    return get_stylesheet_directory() . '/assets/block-styles';
}, 10, 3 );
```

The default is `porter/inc/block/styles/css`. Porter appends `/{namespace_block}--{style-slug}.css`; for example, `core_button--download.css`.
