functions.php
The brains behind this theme. Start here to figure things out.
- Package
- ncp\wp\themes\planet_foundation
- Since
- Planet Foundation 1.0
Functions


pf_add_custom_image_to_media( $sizes) : array
Adds custom size to media editor
ParametersName | Type | Description |
---|
$sizes | | size of custom thumbnail |
---|
ReturnsType | Description |
---|
array | Modified size array |


pf_add_image_size() : void
Adds another image size to the media upload options


pf_add_schema_org_doctype(string $output) : string
Adds itemscope for schema.org
ParametersName | Type | Description |
---|
$output | string | lanaguage attributes for page or post so far |
---|
ReturnsType | Description |
---|
string | itemscope for schema.org |


pf_baw_hack_wp_title_for_home(string $title) : string
For custom home pages when wp_title does not return anything
ParametersName | Type | Description |
---|
$title | string | Title generated for page or post so far |
---|
ReturnsType | Description |
---|
string | $title Title for page |


pf_load_foundation() : void
Load foundation libraries