{"id":13413,"date":"2011-05-27T10:43:29","date_gmt":"2011-05-27T10:43:29","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/mindvalley-post-get-variable\/"},"modified":"2011-12-28T10:40:47","modified_gmt":"2011-12-28T10:40:47","slug":"mindvalley-post-get-variable","status":"publish","type":"plugin","link":"https:\/\/pcd.wordpress.org\/plugins\/mindvalley-post-get-variable\/","author":7475991,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"1.0.6","stable_tag":"1.0.6","tested":"3.1.4","requires":"3.0.0","requires_php":"","requires_plugins":"","header_name":"Mindvalley Post & Get Variables","header_author":"Mindvalley","header_description":"","assets_banners_color":"","last_updated":"2011-12-28 10:40:47","external_support_url":"","external_repository_url":"","donate_link":"http:\/\/www.mindvalley.com\/opensource","header_plugin_uri":"","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":10,"downloads":2420,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":"1"},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.2","1.0.3","1.0.4","1.0.5","1.0.6"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[9770,86,2276],"plugin_category":[],"plugin_contributors":[84107],"plugin_business_model":[],"class_list":["post-13413","plugin","type-plugin","status-publish","hentry","plugin_tags-get","plugin_tags-post","plugin_tags-variables","plugin_contributors-mindvalley","plugin_committers-mindvalley"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/mindvalley-post-get-variable.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Outputs $_POST or $_GET variable values using shortcodes.<\/p>\n\n<p>Super duper uberly useful on tracking scripts on eCommerce thank you pages.<\/p>\n\n<p>Example:<\/p>\n\n<ul>\n<li>$_POST['email'] &gt; [post_var name=\"email\"]<\/li>\n<li>$_GET['txn_id'] &gt; [get_var name=\"txn_id\"]<\/li>\n<\/ul>\n\n<p>For Array values :<\/p>\n\n<ul>\n<li>$_POST['user']['email'] &gt; [post_var] name=\"user[email]\" [\/post_var]<\/li>\n<li>$_GET['user']['first_name'] &gt; [get_var] name=\"user[first_name]\" [\/get_var]<\/li>\n<li>$_GET['user']['address']['line1'] &gt; [get_var] name=\"user[address][line1]\" [\/get_var]<\/li>\n<\/ul>\n\n<p>Note: Remember to wrap the name attribute in double quotes (\").<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Enjoy!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt>Why I can't get some of the URL variables?<\/dt>\n<dd><p>WordPress has a set of reserved GET variables that is used for page querying. For example, 'name' or 'page_id' or 'id' can't be used without having some unexpected results.<\/p><\/dd>\n<dt>Array variables are not showing up.<\/dt>\n<dd><p>Verify that you wrap your the variable settings within a double quote (\"), or else it won't work.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0<\/h4>\n\n<p>Initial Release.<\/p>\n\n<h4>1.0.2<\/h4>\n\n<p>Add support for array $_POST \/ $_GET variables<\/p>\n\n<h4>1.0.3<\/h4>\n\n<p>Additional checks to avoid unnecessary PHP warnings if the key provided appears to be an array.<\/p>\n\n<h4>1.0.4<\/h4>\n\n<p>Bug fix.<\/p>\n\n<h4>1.0.6<\/h4>\n\n<p>Support PHP auto replacements POST \/ GET variables with underscores<\/p>","raw_excerpt":"Lets you output a POST or GET variable in the page via shortcode.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13413","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13413"}],"author":[{"embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/mindvalley"}],"wp:attachment":[{"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13413"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13413"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13413"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13413"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13413"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/pcd.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13413"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}