{"id":24734,"date":"2013-08-17T06:02:22","date_gmt":"2013-08-17T06:02:22","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/qstring-parameter\/"},"modified":"2013-08-17T06:17:59","modified_gmt":"2013-08-17T06:17:59","slug":"qstring-parameter","status":"closed","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/qstring-parameter\/","author":9568984,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0","stable_tag":"trunk","tested":"3.6.1","requires":"3.0","requires_php":"","requires_plugins":"","header_name":"qstring-parameter","header_author":"Satish Kumar Sharma","header_description":"","assets_banners_color":"02302f","last_updated":"2013-08-17 06:17:59","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/phpbase.in\/free-scripts\/qstring-wordpress-plugin\/","header_author_uri":"https:\/\/www.facebook.com\/sakush100","rating":5,"author_block_rating":0,"active_installs":30,"downloads":2004,"num_ratings":0,"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":"3"},"assets_icons":[],"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"804461","resolution":"772x250","location":"assets"}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[3513,9770,1626,17768,538],"plugin_category":[49],"plugin_contributors":[88488],"plugin_business_model":[],"class_list":["post-24734","plugin","type-plugin","status-closed","hentry","plugin_tags-address","plugin_tags-get","plugin_tags-query","plugin_tags-string","plugin_tags-url","plugin_category-maps-and-location","plugin_contributors-sakush100","plugin_committers-sakush100"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/qstring-parameter_02302f.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Sometimes wordpress developers need to pass values through PHP\u2019s GET method. For example, you need to pass your name to another page by GET method like<\/p>\n\n<p>http:\/\/yoursite.com\/some-page\/?myname=john&amp;age=23<\/p>\n\n<p>Now you need to retrieve myname and age variables, but wordpress is designed to ignore such things in URL. You get surprised when you don\u2019t seen anything\u00a0 with<\/p>\n\n<pre>&lt;?php print_r($_GET); ?&gt;<\/pre>\n\n<p>Hence, i decided to make a simple plugin that does this functionality. Qstring is a plugin to allow to access get parameters from query string or URL easily.<\/p>\n\n<!--section=installation-->\n<p>Extract the zip file and just drop the contents in the wp-content\/plugins\/ directory of your WordPress installation and then activate the Plugin from Plugins page.<\/p>\n\n<!--section=faq-->\n<dl>\n<dt>Usage Examples<pre>&lt;?php<br \/><\/pre><\/dt>\n<dd><p>\/\/ IMPORT GET PARAMETERS IN ARRAY FORMAT<br \/>\n$myvar = load_qstrings();<br \/>\n<br \/>\n\/\/ USING PARAMETER WHEREVER NEEDED<br \/>\necho $myvar[&#039;user_id&#039;];<br \/>\n<br \/>\n\/\/ TO DEBUG, USE PRINT_R<br \/>\nprint_r($myvar);<br \/>\n?&gt;<\/p>\n\n<p>\u00a0<\/p><\/dd>\n<dt>Limitations<\/dt>\n<dd><p>There are some reserved keywords in wordpress like \u201cname\u201d. These should not be used otherwise wordpress shows \u201cThe page you requested could not be found.\u201d OR something similar depending on your theme.<\/p>\n\n<p>\u00a0<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<p>none, initial version<\/p>","raw_excerpt":"Qstring is a plugin to allow to access get parameters from query string or URL easily","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/24734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=24734"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/sakush100"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=24734"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=24734"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=24734"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=24734"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=24734"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=24734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}