You have to wait with your call until the theme has registered its post type (it really should not do that anyway):
add_action( 'after_setup_theme', 'list_post_types', 20 );
function list_post_types()
{
var_export( get_post_types() );
}
You have to wait with your call until the theme has registered its post type (it really should not do that anyway):
add_action( 'after_setup_theme', 'list_post_types', 20 );
function list_post_types()
{
var_export( get_post_types() );
}