---
url: /hooks/actions/wpce-editor-setup.md
description: >-
  Action fired after the WPCE backend instance initializes during admin_init for
  editor-specific setup.
---

# `wpce_editor_setup`&#x20;

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

:::warning
This hook does not fire *directly* after the instance is created, but as part of the [`admin_init`](https://developer.wordpress.org/reference/hooks/admin_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_editor_setup', function (WPCE $wpce) {
	// ...
});
```

## Related

* [`wpce_setup`](./wpce-setup)
* [`wpce_edit_screen`](./wpce-edit-screen)
* [`wpce_editor_styles`](./wpce-editor-styles)
