get_post_types with switch to blog
-
Hello
I don’t know if anyone else can replicate this problem but I have a function:
global $switched; switch_to_blog(1); print_r(get_post_types( array('public' => true), 'names' )); restore_current_blog();
but I always only ever get the results for the current blog. Does get_post_types work with switch to blog?
Thank you
James
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘get_post_types with switch to blog’ is closed to new replies.