Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: current_theme_supports-{$feature}

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1555           case 'custom-header':
1556           case 'custom-background' :
1557                // specific custom header and background capabilities can be registered by passing
1558                // an array to add_theme_support()
1559                $header_support = $args[0];
1560                return ( isset( $_wp_theme_features[$feature][0][$header_support] ) && $_wp_theme_features[$feature][0][$header_support] );
1561                break;
1562      }
1563
1564      return apply_filters('current_theme_supports-' . $feature, true, $args, $_wp_theme_features[$feature]);
1565 }
1566
1567 /**
1568  * Checks a theme's support for a given feature before loading the functions which implement it.
1569  *
1570  * @since 2.9.0
1571  * @param string $feature the feature being checked
1572  * @param string $include the file containing the functions that implement the feature
1573  */