• Resolved Molod

    (@molod)


    Hello,

    I’m developing an import Woocommerce plugin for a file with very specific structure. I’ve made it with REST API and it is working fine.

    I got curious and looked at simular import plugins. They don’t use REST API. They use WC_Product_Simple and other classes. Somewhere, before I started with my plugin, I read that using Woocommerce classes and their methods is not safe, because any Woocommerce update can change their functionality and your plugin will break.

    On the other hand using Automattic\WooCommerce\Client and connecting to a localhost withing WordPress website seems kind of wrong.

    How should I go about it? Should I use REST API for my plugin or build in Woocommerce classes?

Viewing 1 replies (of 1 total)
  • Hey @molod,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I would suggest getting in touch with the WooCommerce developer community on Slack. They often engage in discussions on topics like this and you’ll likely get some assistance there.

    WooCommerce Slack Community: https://woocommerce.com/community-slack/

    Cheers!

Viewing 1 replies (of 1 total)

The topic ‘Import plugin development’ is closed to new replies.