---
url: /hooks/actions/wpce-setup.md
description: >-
  Action fired after WPCE initializes during WordPress init, intended for
  backend setup.
---

# `wpce_setup`&#x20;

Fires after a [`WPCE`](https://bitbucket.org/ownbit/ownbit-wpce/src/dev/plugin/includes/WPCE.php) instance has been initialized.

:::warning
This hook does not fire *directly* after the instance is created, but as part of the [`init`](https://developer.wordpress.org/reference/hooks/init/) hook.
:::

## Parameters

1. `WPCE $wpce`

   The [`WPCE`](https://bitbucket.org/ownbit/ownbit-wpce/src/dev/plugin/includes/WPCE.php) instance.

## Example

```php
add_action('wpce_setup', function (WPCE $wpce) {
	// ...
});
```

## Related

* [`wpce_editor_setup`](./wpce-editor-setup)
