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

# porter\_default\_object\_args

Filters Porter's default registration arguments before a configured post type or taxonomy is merged over them.

```php
add_filter( 'porter_default_object_args', function ( array $defaults, string $group ) : array {
    if ( 'posttype' === $group ) {
        $defaults['show_in_graphql'] = true;
    }
    return $defaults;
}, 10, 2 );
```

`$group` is `posttype` or `taxonomy`. Values set on the individual object in JSON take precedence over the filtered defaults.
