Function __global->syndicate_content
Definitions
sources/syndication.php
- Syndicate a content object out, and also send out activities relating to the same content.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $content_type | string | No | No | required parameter | N/A | N/A | Content type |
| $content_id | string | No | No | required parameter | N/A | N/A | Content ID |
| $activities | array | No | No | required parameter | N/A | N/A | A list of activity tuples, each tuple having the language string, optionally the activity member, and optionally up to 3 labels |
| $syndication_context | ?array | No | No | Null | N/A | N/A | A serialisable representation of data set via get_syndication_option_fields (null: read from environment) |
Preview
Code (PHP)
/**
* Syndicate a content object out, and also send out activities relating to the same content.
*
* @param string $content_type Content type
* @param string $content_id Content ID
* @param array $activities A list of activity tuples, each tuple having the language string, optionally the activity member, and optionally up to 3 labels
* @param ?array $syndication_context A serialisable representation of data set via get_syndication_option_fields (null: read from environment)
*/
function syndicate_content(string $content_type, string $content_id, array $activities, ?array $syndication_context = null)
* Syndicate a content object out, and also send out activities relating to the same content.
*
* @param string $content_type Content type
* @param string $content_id Content ID
* @param array $activities A list of activity tuples, each tuple having the language string, optionally the activity member, and optionally up to 3 labels
* @param ?array $syndication_context A serialisable representation of data set via get_syndication_option_fields (null: read from environment)
*/
function syndicate_content(string $content_type, string $content_id, array $activities, ?array $syndication_context = null)

