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

# porter\_blockstyle\_args

Filters one style's compiled registration arguments.

```php
add_filter( 'porter_blockstyle_args', function ( array $args, string $block_name, array $styles ) : array {
    if ( 'core/button' === $block_name && 'download' === $args['name'] ) {
        $args['label'] = __( 'Download link', 'my-theme' );
    }
    return $args;
}, 10, 3 );
```

`$args` contains at least `name`, `label`, and the resolved `inline_style`. `$styles` is the complete configured style map for the current block. Return arguments accepted by `register_block_style()`.
