1 | TextBlender()
TextBlender() is a helper function bundled in WPAPI that allows you to generate content variations from a text that follows a certain pattern.
E.g.: This product is {awesome|amazing|superb} and {{good|better}|{bad|worse}}.
Texts within {...} will be replaced with one of the variants that result from it's split by |. $sticky, the last parameter means that for the same set of choices, the same result will be selected. This allows the following: for two occurrences of {good|bad}, if good was selected first time, good will be used second time also.
As you can see in the example, it supports deep (multi-level) choices giving you a lot more 'uniqueness' (improper usage but proves my point). Use this function to generate content variations and litter the web.


