How to replace any string from feed

    You can replace any string in your feed using Woo Feed Plugin. This advantage is only accessible in our Premium Plugin. Using the advanced Command it’s possible to replace any string from the feed.

    To replace any string use the command [ str_replace => from => to]. Change from and to with your desired string. Copy the command and paste into the command field of your attribute. Learn more about the commands and their applications from here: How to use command to format attribute output?

    Example 1:  If you want to replace your category separator from >” to “|” your command will be [str_replace => > => | ] .

    Example 2:  If you want to replace “,” with “>” then your command will be [str_replace =>comma=>>].

    Example 3: To replace ABC with XYZ the command will be: [str_replace => ABC => XYZ]

    Note* There is also preg_replace command to replace any string but only developers are recommended to use this command. For example, if you want to replace empty space “ ” with underscore “-” then the command will be [preg_replace /\s+/ -]