Make WordPress Core


Ignore:
Timestamp:
03/29/2010 04:26:54 PM (15 years ago)
Author:
wpmuguru
Message:

add remove_theme_support(), props nathanrice, fixes #12739

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r13856 r13877  
    15471547
    15481548/**
     1549 * Allows a theme to de-register its support of a certain feature
     1550 *
     1551 * Must be called in the themes functions.php file to work.
     1552 *
     1553 * @since 3.0.0
     1554 * @param string $feature the feature being added
     1555 */
     1556function remove_theme_support( $feature ) {
     1557    global $_wp_theme_features;
     1558
     1559    unset($_wp_theme_features[$feature]);
     1560}
     1561
     1562/**
    15491563 * Checks a theme's support for a given feature
    15501564 *
Note: See TracChangeset for help on using the changeset viewer.