Get Custom Post
wp_get_custom_postGet a single item of any custom post type by its ID and REST base.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Post ID | |
| site_id | No | Site ID to target (optional if you have only one connected site) | |
| rest_base | Yes | REST base of the post type |