WP_HTTP_Polling_Sync_Server::can_user_sync_entity_type( string $entity_kind, string $entity_name, string|null $object_id ): bool

In this article

This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only by core. It is listed here for completeness.

Checks if the current user can sync a specific entity type.

Parameters

$entity_kindstringrequired
The entity kind, e.g. 'postType', 'taxonomy', 'root'.
$entity_namestringrequired
The entity name, e.g. 'post', 'category', 'site'.
$object_idstring|nullrequired
The numeric object ID / entity key for single entities, null for collections.

Return

bool True if user has permission, otherwise false.

Source

Changelog

VersionDescription
7.0.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.