---
url: /hooks/filters/wpce-before-edit-screen.md
description: >-
  Filter the post object before displaying its WPCE edit screen in the WordPress
  admin.
---

# `wpce_before_edit_screen`&#x20;

Filters the the post that is being edited in a WPCE edit screen.

## Parameters

1. `WP_Post $post`

   The post that is being edited.

## Example

```php
add_filter('wpce_before_edit_screen', function (WP_Post $post) {
	// ...

	return $post;
});
```

## Related

* [`wpce_edit_screen_error`](./wpce-edit-screen-error)
