>
Download This Plugin | |
Download Elegant Themes | |
Name | Cookie Monster |
Version | 1.3 |
Author | gsmith |
Rating | 0 |
Last updated | 2011-12-16 09:15:00 |
Downloads |
5270
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
Cookie Monster plugin added 10 bytes of resources to the Home page and 25 bytes of resources to the sample Post page.
Cookie Monster plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! Cookie Monster plugin ads no tables to your Wordpress blog database.I recently had a situation in which I needed to pass a URL parameter into WordPress so that it could be inserted into all links off of a blog page. For example, a partner would pass traffic to a blog using the format http://www.myblog.com?refcode=joe. All links embedded in the post would need to pass the value of refcode if it existed, even if the visitor requested multiple pages after the initial visit.
I created a Plugin (Cookie Monster) that will allow a Blog Admin to define which URL parameters should be captured, and then creates a shortcode so that the value can be used in your Posts and Pages. A WordPress shortcode is a macro code that is embedded in your content.
In the example above, if you define refcode in the Cookie Monster Admin Settings, and if that URL parameter refcode contains a value in the querystring, it will automatically be saved into a cookie in the visitors browser. Anywhere that you place the shortcode jimmy in your Post, Cookie Monster will insert the querystring value into your Post. The cookie value will persist across browser sessions.