Skip to content
Advertisement

Tag: wordpress

How can I echo ‘for’ loop here

I want to use $i into his PHP condition how can I do this? I have no idea how to echo into condition. plz see the code and if you can plz help me. thank you advanced. Answer To accomplish what you are trying to do, simply follow this example: becomes So you basically take the string you want (which

WooCommerce Product SKU checking is not working

I am trying to create and update woocommerce products automatically from an API. I have created the starting point of the plugin and this is my method that gets the products from the external API and then loops through them and creates a simple product in woocoommerce. It creates the products perfectly fine however if I run the code twice,

Advertisement