# wordpress-seo/trunk/src/bulk-editor/application/updates/post-access-checker-interface.php

Yoast SEO – Advanced SEO with real-time guidance and built-in AI, version trunk. 38 lines.

- Page: https://pluginprobe.com/plugins/wordpress-seo/trunk/code/src/bulk-editor/application/updates/post-access-checker-interface.php
- Raw: https://pluginprobe.com/plugins/wordpress-seo/trunk/raw/src/bulk-editor/application/updates/post-access-checker-interface.php
- Modified: 2026-07-07T11:18:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wordpress-seo/trunk/code/src/bulk-editor/application/updates/post-access-checker-interface.php#L10-L20`.

```php
<?php

// phpcs:disable Yoast.NamingConventions.NamespaceName.TooLong -- Needed in the folder structure.
namespace Yoast\WP\SEO\Bulk_Editor\Application\Updates;

/**
 * Describes what the bulk updater needs to know about a post before updating it.
 */
interface Post_Access_Checker_Interface {

	/**
	 * Whether the post exists.
	 *
	 * @param int $post_id The ID of the post.
	 *
	 * @return bool Whether the post exists.
	 */
	public function exists( int $post_id ): bool;

	/**
	 * Whether the post is of a type the bulk editor supports.
	 *
	 * @param int $post_id The ID of the post.
	 *
	 * @return bool Whether the post is of a supported type.
	 */
	public function is_supported_type( int $post_id ): bool;

	/**
	 * Whether the current user is allowed to edit the post.
	 *
	 * @param int $post_id The ID of the post.
	 *
	 * @return bool Whether the current user is allowed to edit the post.
	 */
	public function can_edit( int $post_id ): bool;
}

```
