Problem: I would like to use the WP function get_post_type_object in my init hook, but it returns empty or null for my custom post types.
Solution: Try priority 15, when most of Types functionality should be available.
function myplugin_register_template() {
$post_type_object = get_post_type_object( 'book' );
}
add_action( 'init', 'myplugin_register_template', 15 );