If I add multiple modifiers in Shopify Liquid, what order does the code get processed in?
For example:
tag_parts.last | capitalize | replace: "-", " "
Would it: Capitalize and then replace the hyphen or Replace the hyphen and then capitalize
I have looked quite a bit, but haven't found a definitive answer.
The order is from left to right.
So in your case they will be capitalized then replaced.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.