functions.php

Show: PublicProtectedPrivateinherited
    Table of Contents
    The brains behind this theme. Start here to figure things out.
    Package
    ncp\wp\themes\planet_foundation  
    Since
    Planet Foundation 1.0  

    Functions

    functionpf_add_custom_image_to_media( $sizes) : array

    Adds custom size to media editor

    Parameters
    NameTypeDescription
    $sizes

    size of custom thumbnail

    Returns
    TypeDescription
    arrayModified size array
    functionpf_add_image_size() : void

    Adds another image size to the media upload options

    functionpf_add_schema_org_doctype(string $output) : string

    Adds itemscope for schema.org

    Parameters
    NameTypeDescription
    $outputstring

    lanaguage attributes for page or post so far

    Returns
    TypeDescription
    stringitemscope for schema.org
    functionpf_baw_hack_wp_title_for_home(string $title) : string

    For custom home pages when wp_title does not return anything

    Parameters
    NameTypeDescription
    $titlestring

    Title generated for page or post so far

    Returns
    TypeDescription
    string$title Title for page
    functionpf_load_foundation() : void

    Load foundation libraries

    Documentation was generated by phpDocumentor 2.3.0 .