add_theme_support( 'post-formats', array( 'aside', 'image', 'etc' ) ); Add UI for choosing a post format, and save the choice. see #14746

git-svn-id: https://develop.svn.wordpress.org/trunk@16174 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Mark Jaquith
2010-11-04 07:41:07 +00:00
parent 8b0f87ebfd
commit ef54c47f7a
9 changed files with 81 additions and 5 deletions

View File

@@ -1665,6 +1665,21 @@ function add_theme_support( $feature ) {
$_wp_theme_features[$feature] = array_slice( func_get_args(), 1 );
}
/**
* Gets the theme support arguments passed when registering that support
*
* @since 3.1
* @param string $feature the feature to check
* @return array The array of extra arguments
*/
function get_theme_support( $feature ) {
global $_wp_theme_features;
if ( !isset( $_wp_theme_features[$feature] ) )
return false;
else
return $_wp_theme_features[$feature];
}
/**
* Allows a theme to de-register its support of a certain feature
*