{"id":100692,"date":"2019-04-09T15:42:57","date_gmt":"2019-04-09T15:42:57","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wp-request\/"},"modified":"2019-04-10T16:54:11","modified_gmt":"2019-04-10T16:54:11","slug":"ht-request","status":"publish","type":"plugin","link":"https:\/\/wordpress.org\/plugins\/ht-request\/","author":17010017,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.0","stable_tag":"trunk","tested":"5.1.22","requires":"4.6","requires_php":"5.2.4","requires_plugins":"","header_name":"WP Request","header_author":"Hashtag Errors","header_description":"Get all sorts of info about the current request from WP Request.","assets_banners_color":"2555fe","last_updated":"2019-04-10 16:54:11","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/hashtagerrors.com\/plugins\/wp-request","header_author_uri":"http:\/\/hashtagerrors.com","rating":0,"author_block_rating":0,"active_installs":0,"downloads":1212,"num_ratings":1,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":[],"upgrade_notice":[],"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":"2065910","resolution":"128x128","location":"assets","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":"2065910","resolution":"256x256","location":"assets","width":256,"height":256}},"assets_banners":{"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":"2065910","resolution":"772x250","location":"assets","width":772,"height":252}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":[],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[170093,170094,170090,170091,170092],"plugin_category":[],"plugin_contributors":[170095],"plugin_business_model":[],"class_list":["post-100692","plugin","type-plugin","status-publish","hentry","plugin_tags-getpath","plugin_tags-geturl","plugin_tags-isget","plugin_tags-ispost","plugin_tags-issecure","plugin_contributors-hashtagerrors","plugin_committers-hashtagerrors"],"banners":{"banner":"https:\/\/ps.w.org\/ht-request\/assets\/banner-772x250.jpg?rev=2065910","banner_2x":false,"banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/ht-request\/assets\/icon-128x128.png?rev=2065910","icon_2x":"https:\/\/ps.w.org\/ht-request\/assets\/icon-256x256.png?rev=2065910","generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>The plugin has following shortcodes available :<\/p>\n\n<ul>\n<li>[wph_request_isGet]<\/li>\n<\/ul>\n\n<p>Returns whether this is a GET request.<\/p>\n\n<ul>\n<li>[wph_request_isPost]<\/li>\n<\/ul>\n\n<p>Returns whether this is a POST request.<\/p>\n\n<ul>\n<li>[wph_request_isDelete]<\/li>\n<\/ul>\n\n<p>Returns whether this is a DELETE request.<\/p>\n\n<ul>\n<li>[wph_request_isPut]<\/li>\n<\/ul>\n\n<p>Returns whether this is a PUT request.<\/p>\n\n<ul>\n<li>[wph_request_isAjax]<\/li>\n<\/ul>\n\n<p>Returns whether this is an Ajax request.<\/p>\n\n<ul>\n<li>[wph_request_isSecure]<\/li>\n<\/ul>\n\n<p>Returns whether this is a secure connection.<\/p>\n\n<ul>\n<li>[wph_request_getScriptName]<\/li>\n<\/ul>\n\n<p>Returns the script name used to access Index page.<\/p>\n\n<ul>\n<li>[wph_request_getPath]<\/li>\n<\/ul>\n\n<p>Returns the request's URI.<\/p>\n\n<ul>\n<li>[wph_request_getUrl]<\/li>\n<\/ul>\n\n<p>Returns the request's full URL.<\/p>\n\n<ul>\n<li>[wph_request_getSegments]<\/li>\n<\/ul>\n\n<p>Returns JSON encoded array of all URI segments.<\/p>\n\n<ul>\n<li>[wph_request_getSegment num=\"segment_number\"]<\/li>\n<\/ul>\n\n<p>Returns a specific URI segment, or null if the segment doesn't exist.<\/p>\n\n<ul>\n<li>[wph_request_getFirstSegment]<\/li>\n<\/ul>\n\n<p>Returns the first URI segment.<\/p>\n\n<ul>\n<li>[wph_request_getLastSegment]<\/li>\n<\/ul>\n\n<p>Returns the last URL segment.<\/p>\n\n<ul>\n<li>[wph_request_getParam name=\"parameter_name\"]<\/li>\n<\/ul>\n\n<p>Returns a variable from either the query string or the post data.<\/p>\n\n<ul>\n<li>[wph_request_getQuery name=\"parameter_name\"]<\/li>\n<\/ul>\n\n<p>Returns a variable from the query string.<\/p>\n\n<ul>\n<li>[wph_request_getPost name=\"parameter_name\"]<\/li>\n<\/ul>\n\n<p>Returns a value from post data.<\/p>\n\n<ul>\n<li>[wph_request_getServerName]<\/li>\n<\/ul>\n\n<p>Returns the server name.<\/p>\n\n<ul>\n<li>[wph_request_isMobileBrowser]<\/li>\n<\/ul>\n\n<p>Returns whether the request is coming from a mobile browser.<\/p>\n\n<ul>\n<li>[wph_request_getHostInfo]<\/li>\n<\/ul>\n\n<p>Returns the schema and host part of the application URL.<\/p>\n\n<ul>\n<li>[wph_request_getScriptUrl]<\/li>\n<\/ul>\n\n<p>Returns the relative URL of the entry script.<\/p>\n\n<ul>\n<li>[wph_request_getPathInfo]<\/li>\n<\/ul>\n\n<p>eturns the path info of the currently requested URL.<\/p>\n\n<ul>\n<li>[wph_request_getRequestUri]<\/li>\n<\/ul>\n\n<p>Returns the request URI portion for the currently requested URL.<\/p>\n\n<ul>\n<li>[wph_request_getServerPort]<\/li>\n<\/ul>\n\n<p>Returns the server port number.<\/p>\n\n<ul>\n<li>[wph_request_getUrlReferrer]<\/li>\n<\/ul>\n\n<p>Returns the URL referrer or null if not present.<\/p>\n\n<ul>\n<li>[wph_request_getUserAgent]<\/li>\n<\/ul>\n\n<p>Returns the user agent or null if not present.<\/p>\n\n<ul>\n<li>[wph_request_getUserHostAddress]<\/li>\n<\/ul>\n\n<p>Returns the user IP address.<\/p>\n\n<ul>\n<li>[wph_request_getUserHost]<\/li>\n<\/ul>\n\n<p>Returns the user host name or null if it cannot be determined.<\/p>\n\n<ul>\n<li>[wph_request_getPort]<\/li>\n<\/ul>\n\n<p>Returns the port to use for insecure requests.<\/p>\n\n<ul>\n<li>[wph_request_getQueryString]<\/li>\n<\/ul>\n\n<p>Returns part of the request URL that is after the question mark.<\/p>\n\n<ul>\n<li>[wph_request_getQueryStringWithoutPath]<\/li>\n<\/ul>\n\n<p>Returns the request\u2019s query string, without the p= parameter.<\/p>\n\n<ul>\n<li>[wph_request_getIpAddress]<\/li>\n<\/ul>\n\n<p>Returns the best guess of the client\u2019s actual IP address<\/p>\n\n<ul>\n<li>[wph_request_getClientOs]<\/li>\n<\/ul>\n\n<p>Returns whether the client is running \"Windows\", \"Mac\", \"Linux\" or \"Other\".<\/p>\n\n<!--section=installation-->\n<p><strong>Through Dashboard<\/strong><\/p>\n\n<ol>\n<li>Log in to your WordPress admin panel and go to Plugins -&gt; Add New<\/li>\n<li>Type <strong>WP Request<\/strong> in the search box and click on search button.<\/li>\n<li>Find WP Request plugin.<\/li>\n<li>Then click on Install Now after that activate the plugin.<\/li>\n<li>Place any of the available shortcode through <code>&lt;?php do_shortcode('[wph_request_getIpAddress]'); ?&gt;<\/code> in your templates<\/li>\n<\/ol>\n\n<p><strong>Installing Via FTP<\/strong><\/p>\n\n<ol>\n<li>Download <strong>WP Request<\/strong> plugin from https:\/\/wordpress.org\/plugins\/.<\/li>\n<li>Unzip.<\/li>\n<li>Upload the <strong>wp-request<\/strong> folder into your plugins directory.<\/li>\n<li>Log in to your WordPress admin panel and click the Plugins menu.<\/li>\n<li>Then activate the plugin.<\/li>\n<li>Place any of the available shortcode through <code>&lt;?php do_shortcode('[wph_request_getIpAddress]'); ?&gt;<\/code> in your templates<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>0.1.0 - 2\/29\/2019<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"Get all sorts of info about the current request from WP Request.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/100692","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=100692"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/hashtagerrors"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=100692"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=100692"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=100692"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=100692"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=100692"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=100692"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}