Function __global->define_page_metadata
Definitions
sources/content2.php
- Define page metadata.This function is intended for programmers, writing upgrade scripts for a custom site (dev>staging>live).
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $page_metadata | array | No | No | required parameter | N/A | N/A | Page metadata for multiple pages (see function code for an example; description and keywords go to SEO metadata, rest goes to custom fields which will auto-create as needed) |
| $zone | string | No | No | Blank (empty string) | N/A | N/A | The zone to do this in |
Preview
Code (PHP)
/**
* Define page metadata.This function is intended for programmers, writing upgrade scripts for a custom site (dev>staging>live).
*
* @param array $page_metadata Page metadata for multiple pages (see function code for an example; description and keywords go to SEO metadata, rest goes to custom fields which will auto-create as needed)
* @param string $zone The zone to do this in
*/
function define_page_metadata(array $page_metadata, string $zone = '')
* Define page metadata.This function is intended for programmers, writing upgrade scripts for a custom site (dev>staging>live).
*
* @param array $page_metadata Page metadata for multiple pages (see function code for an example; description and keywords go to SEO metadata, rest goes to custom fields which will auto-create as needed)
* @param string $zone The zone to do this in
*/
function define_page_metadata(array $page_metadata, string $zone = '')
