> 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/documentation/assets.md).

# Assets

PorterWP registers and enqueues its assets through dedicated configuration classes. You can customise the default arguments of these registrations using four public filters:

* [`porter_public_styles_default_args`](/porterwp/filters/porter_public_styles_default_args.md)
* [`porter_public_scripts_default_args`](/porterwp/filters/porter_public_scripts_default_args.md)
* [`porter_editor_styles_default_args`](/porterwp/filters/porter_editor_styles_default_args.md)
* [`porter_editor_scripts_default_args`](/porterwp/filters/porter_editor_scripts_default_args.md)

Each filter receives the **defaults array** as its first argument.\
Return your modified array to override handles, dependencies, versions, or file paths.

```php
add_filter( 'porter_public_styles_default_args', function ( $defaults ) {
    $defaults['src'] = get_stylesheet_directory_uri() . '/assets/css/public.min.css';
    return $defaults;
} );
```

See the linked pages for full details and examples.
