Title: builder shortcode
Last modified: August 20, 2021

---

# builder shortcode

 *  Resolved [frengo70](https://wordpress.org/support/users/frengo70/)
 * (@frengo70)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/builder-shortcode/)
 * Hello
    is it possible to exclude the import of wp-bakery shortcodes from other
   builders in order to import only the real content?

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [4 years, 9 months ago](https://wordpress.org/support/topic/builder-shortcode/#post-14801425)
 * Hi [@frengo70](https://wordpress.org/support/users/frengo70/),
 * > is it possible to exclude the import of wp-bakery shortcodes from other builders
   > in order to import only the real content?
 * You can use a custom PHP function to strip the shortcodes from the content import
   element: [https://www.wpallimport.com/documentation/developers/custom-code/inline-php/](https://www.wpallimport.com/documentation/developers/custom-code/inline-php/).
   Here is an example snippet that you can modify as needed:
 *     ```
       // Remove shortcodes from data/content/string
       function my_remove_shortcodes( $data ) {
       	$pattern = '#\[[^\]]+\]#';
       	preg_match_all( $pattern, $data, $matches );
       	foreach ( $matches as $key => $match ) {
       		$data = str_replace( $match, '', $data );
       	}
       	return $data;
       }
       ```
   
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [4 years, 8 months ago](https://wordpress.org/support/topic/builder-shortcode/#post-14908707)
 * Hi [@frengo70](https://wordpress.org/support/users/frengo70/),
 * I am going to mark this thread as resolved since it’s been inactive for a while.
   You can open up a new topic if you still have any questions.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘builder shortcode’ 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/)

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