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
1584           case 'custom-header':
1585           case 'custom-background' :
1586                // specific custom header and background capabilities can be registered by passing
1587                // an array to add_theme_support()
1588                $header_support = $args[0];
1589                return ( isset( $_wp_theme_features[$feature][0][$header_support] ) && $_wp_theme_features[$feature][0][$header_support] );
1590                break;
1591      }
1592
1593      return apply_filters('current_theme_supports-' . $feature, true, $args, $_wp_theme_features[$feature]);
1594 }
1595
1596 /**
1597  * Checks a theme's support for a given feature before loading the functions which implement it.
1598  *
1599  * @since 2.9.0
1600  * @param string $feature the feature being checked
1601  * @param string $include the file containing the functions that implement the feature
1602  */