mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-14 09:34:41 +00:00
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:
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user