Supports

Posted on November 14, 2016

The Supports allows a theme to register its support of a certain feature.

Default config path

{{ Project Name }}/app/config/supports.json

You can rewrite this path by lf_config_supports_path filter.

Scheme

[
    "{{ mixed }}"
]

Mixed:

$feature

(string) (Required) The feature being added. Likely core values include ‘post-formats’, ‘post-thumbnails’, ‘html5’, ‘custom-logo’, ‘custom-header-uploads’, ‘custom-header’, ‘custom-background’, ‘title-tag’, etc.

$args,…

(mixed) (Optional) extra arguments to pass along with certain features.

Example

 

[
    "automatic-feed-links",
    "title-tag",
    "post-thumbnails",
    [
        "html5",
        [
            "search-form",
            "comment-form",
            "comment-list",
            "gallery",
            "caption"
        ]
    ],
    [
        "post-formats",
        [
            "aside",
            "image",
            "video",
            "quote",
            "link"
        ]
    ]
]

Based on

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *