Yoast\WP\SEO\Bulk_Editor\Application\Updates
Post_Access_Checker_Interface::can_edit
Whether the current user is allowed to edit the post.
Метод класса: Post_Access_Checker_Interface{}
Хуков нет.
Возвращает
true|false. Whether the current user is allowed to edit the post.
Использование
$Post_Access_Checker_Interface = new Post_Access_Checker_Interface(); $Post_Access_Checker_Interface->can_edit( $post_id ): bool;
- $post_id(int) (обязательный)
- The ID of the post.
Код Post_Access_Checker_Interface::can_edit() Post Access Checker Interface::can edit Yoast 28.3
public function can_edit( int $post_id ): bool;