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

# porter\_editor\_scripts\_default\_args

Filters defaults merged into each script in `settings.admin.editor_scripts`.

```php
add_filter( 'porter_editor_scripts_default_args', function ( array $defaults ) : array {
    $defaults['args']['strategy'] = 'defer';
    return $defaults;
} );
```

Defaults: empty `src`; dependencies `wp-blocks`, `wp-i18n`, `wp-element`, `wp-components`, and `wp-editor`; active theme version; and `args.in_footer => true`. Individual asset configuration takes precedence.
