Title: Shortcode blocking import
Last modified: January 26, 2024

---

# Shortcode blocking import

 *  Resolved [wpangel](https://wordpress.org/support/users/wpangel/)
 * (@wpangel)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/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.

Viewing 1 replies (of 1 total)

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/shortcode-blocking-import/#post-17379319)
 * Hi [@wpangel](https://wordpress.org/support/users/wpangel/),
 * What exactly happens when your custom code is activated? Does the import terminate?
   If so, try logging the relevant error to see what’s going on: [https://www.wpallimport.com/documentation/terminated-imports-exports/#check-server-error-log](https://www.wpallimport.com/documentation/terminated-imports-exports/#check-server-error-log).

Viewing 1 replies (of 1 total)

The topic ‘Shortcode blocking import’ is closed to new replies.

 * ![](https://ps.w.org/wp-all-import/assets/icon-256x256.png?rev=2570179)
 * [WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets](https://wordpress.org/plugins/wp-all-import/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-all-import/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-all-import/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-all-import/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-all-import/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-all-import/reviews/)

## Tags

 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)

 * 1 reply
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [2 years, 4 months ago](https://wordpress.org/support/topic/shortcode-blocking-import/#post-17379319)
 * Status: resolved