Title: function to replace string not working ?
Last modified: March 9, 2018

---

# function to replace string not working ?

 *  Resolved [tibewww](https://wordpress.org/support/users/tibewww/)
 * (@tibewww)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/function-to-replace-string-not-working/)
 * Hi All,
 * here is my thing, id like on export to remove soe string in the csv file which
   appaer in the html.
 * This is to remove some string added from visual composer ( text field).
 * I would like to remove / or change some of content, etc.
 * For this i go in the settings of wp all export, and add a function in the editor:
   such as:
 *     ```
       function corrige_text($ref) {
       return str_replace( "wordtomove","newone",$ref);
       }
       ```
   
 * however its not working . . .
 * Any idea why ?
 * Thanks a lot !!

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

 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/function-to-replace-string-not-working/#post-10069474)
 * Hi [@tibewww](https://wordpress.org/support/users/tibewww/)
 * To apply the function to the content element, you’ll need to click the element
   in your export template and type in the function name as shown here: [https://d.pr/fSq9ta](https://d.pr/fSq9ta).
 *  Thread Starter [tibewww](https://wordpress.org/support/users/tibewww/)
 * (@tibewww)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/function-to-replace-string-not-working/#post-10069549)
 * HI and thanks for the reply,
 * I dont have the export value in my plugin ??
 * see screenshot: [https://prnt.sc/iqm8n5](https://prnt.sc/iqm8n5)
 * is there something am i missing ??
 * Thanks for all !
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/function-to-replace-string-not-working/#post-10086317)
 * Hey [@tibewww](https://wordpress.org/support/users/tibewww/)
 * Your screenshot shows the “Settings” page for WP All Export. You’ll need to navigate
   to All Export > Manage Exports, then:
    1. Click “Edit Export” under your export.
    2. Click the export element that you want to apply this function to.
    3. Follow the directions in my previous reply.
 *  -  This reply was modified 8 years, 2 months ago by [WP All Import](https://wordpress.org/support/users/wpallimport/).
 *  Plugin Author [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * (@wpallimport)
 * [8 years, 2 months ago](https://wordpress.org/support/topic/function-to-replace-string-not-working/#post-10108969)
 * [@tibewww](https://wordpress.org/support/users/tibewww/) I’m marking this as 
   resolved, but please feel free to respond here if you still have a question regarding
   this issue.

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

The topic ‘function to replace string not working ?’ is closed to new replies.

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

 * 4 replies
 * 2 participants
 * Last reply from: [WP All Import](https://wordpress.org/support/users/wpallimport/)
 * Last activity: [8 years, 2 months ago](https://wordpress.org/support/topic/function-to-replace-string-not-working/#post-10108969)
 * Status: resolved