Import plugin development
-
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_Simpleand 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\Clientand 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?
The topic ‘Import plugin development’ is closed to new replies.