• Resolved tibewww

    (@tibewww)


    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

    (@wpallimport)

    Hi @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.

    Thread Starter tibewww

    (@tibewww)

    HI and thanks for the reply,

    I dont have the export value in my plugin ??

    see screenshot: https://prnt.sc/iqm8n5

    is there something am i missing ??

    Thanks for all !

    Plugin Author WP All Import

    (@wpallimport)

    Hey @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.
    Plugin Author WP All Import

    (@wpallimport)

    @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.