You can now create your personalized short codes to incorporate code snippets, HTML, PHP which includes contact forms, iframes, opt-in boxes, Adsense code, etc. into your website pages and blog posts and widgets and directly into the PHP content as well anytime.
http://store.biztechconsultancy.com/wordpress-custom-global-variable.htm