added post_status filter in WC API, closes #4857