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

# porter\_wp\_inc\_load\_first\_filepaths

Filters entry names promoted to the start of each theme include-directory scan.

```php
add_filter( 'porter_wp_inc_load_first_filepaths', function ( array $names ) : array {
    $names[] = 'contracts';
    return $names;
} );
```

The defaults are `first` and `traits`. Only names that exist in the current directory are promoted. This controls discovery/load order; all normal safety and exclusion checks still apply.

Register this filter in the theme's `functions.php`, an MU plugin, or a plugin that loads before Porter's `init` priority 3 scan. A callback inside `porter/inc/` is too late to alter that directory's load order.
