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

# porter\_fs\_loaded

Runs immediately after PorterWP initializes its Freemius SDK singleton during plugin bootstrap.

Register this callback from an MU plugin or another plugin that is guaranteed to load before PorterWP. The action has already fired by the time a normal theme or `porter/inc/` file loads.

```php
add_action( 'porter_fs_loaded', function () : void {
    $sdk = porter_fs();
    // Register an integration that depends on the initialized SDK.
} );
```

The action receives no arguments. It fires before Porter's normal `init`-time configuration work, so defer code that depends on registered post types or blocks to the appropriate WordPress hook.

Theme code that only needs the initialized SDK later should call `porter_fs()` directly on `after_setup_theme` or a later hook after checking that the function exists; it should not wait for `porter_fs_loaded`.
