PHP Class Themosis\Config\Support

Show file Open project: themosis/framework

Protected Properties

Property Type Description
$data List of theme supports.

Public Methods

Method Description
__construct ( array $data )
make ( ) : Themosis\Config\Support; Add theme supports.

Protected Methods

Method Description
support ( string $feature, array $value = [] ) Add theme support.

Method Details

__construct() public method

public __construct ( array $data )
$data array

make() public method

Call this only into your theme functions.php file or files relative to it. If call outside of the theme, wrap this with after_setup_theme hook.
public make ( ) : Themosis\Config\Support;
return Themosis\Config\Support;

support() protected method

Add theme support.
protected support ( string $feature, array $value = [] )
$feature string
$value array

Property Details

$data protected property

List of theme supports.
protected $data