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) : arrayAdds custom size to media editor
Parameters| Name | Type | Description |
|---|
| $sizes | | size of custom thumbnail |
|---|
Returns| Type | Description |
|---|
| array | Modified size array |


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


pf_add_schema_org_doctype(string $output) : stringAdds itemscope for schema.org
Parameters| Name | Type | Description |
|---|
| $output | string | lanaguage attributes for page or post so far |
|---|
Returns| Type | Description |
|---|
| string | itemscope for schema.org |


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


pf_load_foundation() : voidLoad foundation libraries