Shortcode blocking import
-
Please help because I don’t know what the connection is between WP All Import and the Snippets plugin. I want to update the stock from an external linked .csv file, so only ‘stock’ is what I want to update, which works fine until I activate a shortcode-containing PHP code in the Snippets plugin, for example:
‘add_shortcode( ‘myprice’, function(){
global $product;
return $product->get_price();
});’I don’t know the connection between the two and why they conflict.
And please don’t tell me to turn off Snippets because I need both the Snippets code and the import. I don’t understand the connection between the two, and why WP All Import is being disrupted by an external snippet. In theory, it should only update the stock in WooCommerce.
The topic ‘Shortcode blocking import’ is closed to new replies.