Function __global->seo_meta_set_for_implicit
Definitions
sources/content2.php
- Sets the meta information for the specified resource, by auto-summarisation from the given parameters.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $type | ID_TEXT | No | No | required parameter | N/A | N/A | The type of resource (e.g. download) |
| $id | ID_TEXT | No | No | required parameter | N/A | N/A | The ID of the resource |
| $keyword_sources | array | No | No | required parameter | N/A | N/A | Array of content strings to summarise from |
| $description | SHORT_TEXT | No | No | required parameter | N/A | N/A | The description to use |
Returns
- Keyword string generated (it's also saved in the DB, so usually you won't want to collect this)
- Type: SHORT_TEXT
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Sets the meta information for the specified resource, by auto-summarisation from the given parameters.
*
* @param ID_TEXT $type The type of resource (e.g. download)
* @param ID_TEXT $id The ID of the resource
* @param array $keyword_sources Array of content strings to summarise from
* @param SHORT_TEXT $description The description to use
* @return SHORT_TEXT Keyword string generated (it's also saved in the DB, so usually you won't want to collect this)
*/
function seo_meta_set_for_implicit(string $type, string $id, array $keyword_sources, string $description) : string
* Sets the meta information for the specified resource, by auto-summarisation from the given parameters.
*
* @param ID_TEXT $type The type of resource (e.g. download)
* @param ID_TEXT $id The ID of the resource
* @param array $keyword_sources Array of content strings to summarise from
* @param SHORT_TEXT $description The description to use
* @return SHORT_TEXT Keyword string generated (it's also saved in the DB, so usually you won't want to collect this)
*/
function seo_meta_set_for_implicit(string $type, string $id, array $keyword_sources, string $description) : string
