Get_posts not returning any posts when used with switch_to_blog

Per @Milo’s comment:

probably post_status, which defaults to publish – Milo 53 mins ago

So I just set 'post_status' => 'wc_completed' in my args and I’m good.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)