Any way to retrieve accurate list of post types after switch_to_blog()?
Does anyone know of a way in WordPress Multisite to retrieve an accurate list of the registered post types on a blog other than the one you’re currently viewing? When you use the switch_to_blog() function, the list of registered post types isn’t reset, so it still returns the registered post types for the blog you were initially working on, rather than returning the list of registered post types for the blog you switched to.
I’m not sure if this is really even possible, since post types are registered for each individual blog at run time; but I wanted to check to see if anyone had any ideas (outside of initializing the other blog in a new window/frame and trying to return information through JSON(P)). Thank you.
- The topic ‘Any way to retrieve accurate list of post types after switch_to_blog()?’ is closed to new replies.