After adding support for a selection of post formats like this:
add_theme_support( 'post-formats', array( 'aside', 'video' ) );
how can I then get the list of supported post formats back?
I'm building a theme where the user can toggle support for postformat, and I want other admin elements to reflect what post formats the user has configured the theme to support.
so I'm looking for something like
current_theme_supports( 'post-formats'); // outputs boolean
but that outputs just true or false, whereas I want to get an array of the post formats actually registered..
what would be the correct WordPress function to call (or constant/global var) to look at for this?
I want something like this:
get_supported_post_formats(); // out: array('aside', 'video')