All you need to do is create a variable in the admin section, then add the [variable_tag] to your HTML code. This tag can go straight into your posts, pages, themes, links, widgets etc.
The beauty (and power) of AnyVar comes into play when you have multiple copies of the same piece of code &/or text in more than one place. It's almost like a templating system within a templating system (Wordpress).
Ok, consider these examples:
You like putting ads inside your posts, but you also like to change advertisers occasionally. So you create a variable called [post_ad] which contains the html for the ad. The next month you decide to change the ad, all you do is update the [post_ad] variable in the AnyVar admin section, and hey presto, every post you've put your [post_ad] tag (could be 5, 50, 100 posts) is automatically instantly change.
You've decide to add a 'thought for the day' quote to your blog. You could manually change the theme each day to reflect this, or your could add a [daily_thought] variable and update this each day inside the Wordpress admin, without having to touch the theme.
The usefulness of this plugin is only limited by your imagination... :)
The non-technical version is that replaces the [variable_tag] with the variable text at the end of the process of making the page.
The technical version is that it uses PHP's output buffering to do the search / replace once Wordpress has finished generating that output.
Yes. However, in the relatively small amount of benchmarking I've done, AnyVar has actually slightly lowered the Wordpress page load time (by a few milliseconds). I'd say this is due to cutting down the number of echo / output commands sending data to the browser.




