Function __global->get_bound_content_entry
Definitions
sources/fields.php
- Get catalogue entry ID bound to a content entry.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: int
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $content_type | ID_TEXT | No | No | required parameter | N/A | N/A | Content type hook codename |
| $id | ID_TEXT | No | No | required parameter | N/A | N/A | Content entry ID |
Returns
- Bound catalogue entry ID (null: none)
- Type: ?AUTO_LINK
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get catalogue entry ID bound to a content entry.
*
* @param ID_TEXT $content_type Content type hook codename
* @param ID_TEXT $id Content entry ID
* @return ?AUTO_LINK Bound catalogue entry ID (null: none)
*/
function get_bound_content_entry(string $content_type, string $id) : ?int
* Get catalogue entry ID bound to a content entry.
*
* @param ID_TEXT $content_type Content type hook codename
* @param ID_TEXT $id Content entry ID
* @return ?AUTO_LINK Bound catalogue entry ID (null: none)
*/
function get_bound_content_entry(string $content_type, string $id) : ?int

