Core Function
View Source on Trac ↗ register_theme_feature()
register_theme_feature( mixed $feature, mixed $args = array() ) Registers a theme feature for use in add_theme_support().
Parameters 2 required
| Name / Type | Description |
|---|---|
| string | $feature The name uniquely identifying the feature. See add_theme_support() for the list of possible values. Required |
| array | $args { Data used to describe the theme. Required |
Return Value
((true)
| WP_Error) True if the theme feature was successfully registered, a WP_Error object if not.
Function Information
Since Version
5.5.0
Source File
wp-includes/theme.php
Advertisement