WP all import woocommerce products post status dynamic change

Job ID: 34056812

Budget: €8 – €30 EUR

Would need to:
if product has <published>0</published> in XML source then product must have status "draft"
if product is no longer present in XML source then product must have status "draft"
if product has <published>1</published> in XML source then product must have status "published"

All this must be made by adding custom PHP code for WP all import plugin.
Related categories: PHP WordPress Software Architecture MySQL WooCommerce