Title: WP Request
Author: hashtagerrors
Published: <strong>abril 9, 2019</strong>
Last modified: abril 10, 2019

---

Search plugins

![](https://ps.w.org/ht-request/assets/banner-772x250.jpg?rev=2065910)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/ht-request/assets/icon-256x256.png?rev=2065910)

# WP Request

 By [hashtagerrors](https://profiles.wordpress.org/hashtagerrors/)

[Download](https://downloads.wordpress.org/plugin/ht-request.zip)

 * [Details](https://arg.wordpress.org/plugins/ht-request/#description)
 * [Reviews](https://arg.wordpress.org/plugins/ht-request/#reviews)
 *  [Installation](https://arg.wordpress.org/plugins/ht-request/#installation)
 * [Development](https://arg.wordpress.org/plugins/ht-request/#developers)

 [Support](https://wordpress.org/support/plugin/ht-request/)

## Description

The plugin has following shortcodes available :

 * [wph_request_isGet]

Returns whether this is a GET request.

 * [wph_request_isPost]

Returns whether this is a POST request.

 * [wph_request_isDelete]

Returns whether this is a DELETE request.

 * [wph_request_isPut]

Returns whether this is a PUT request.

 * [wph_request_isAjax]

Returns whether this is an Ajax request.

 * [wph_request_isSecure]

Returns whether this is a secure connection.

 * [wph_request_getScriptName]

Returns the script name used to access Index page.

 * [wph_request_getPath]

Returns the request’s URI.

 * [wph_request_getUrl]

Returns the request’s full URL.

 * [wph_request_getSegments]

Returns JSON encoded array of all URI segments.

 * [wph_request_getSegment num=”segment_number”]

Returns a specific URI segment, or null if the segment doesn’t exist.

 * [wph_request_getFirstSegment]

Returns the first URI segment.

 * [wph_request_getLastSegment]

Returns the last URL segment.

 * [wph_request_getParam name=”parameter_name”]

Returns a variable from either the query string or the post data.

 * [wph_request_getQuery name=”parameter_name”]

Returns a variable from the query string.

 * [wph_request_getPost name=”parameter_name”]

Returns a value from post data.

 * [wph_request_getServerName]

Returns the server name.

 * [wph_request_isMobileBrowser]

Returns whether the request is coming from a mobile browser.

 * [wph_request_getHostInfo]

Returns the schema and host part of the application URL.

 * [wph_request_getScriptUrl]

Returns the relative URL of the entry script.

 * [wph_request_getPathInfo]

eturns the path info of the currently requested URL.

 * [wph_request_getRequestUri]

Returns the request URI portion for the currently requested URL.

 * [wph_request_getServerPort]

Returns the server port number.

 * [wph_request_getUrlReferrer]

Returns the URL referrer or null if not present.

 * [wph_request_getUserAgent]

Returns the user agent or null if not present.

 * [wph_request_getUserHostAddress]

Returns the user IP address.

 * [wph_request_getUserHost]

Returns the user host name or null if it cannot be determined.

 * [wph_request_getPort]

Returns the port to use for insecure requests.

 * [wph_request_getQueryString]

Returns part of the request URL that is after the question mark.

 * [wph_request_getQueryStringWithoutPath]

Returns the request’s query string, without the p= parameter.

 * [wph_request_getIpAddress]

Returns the best guess of the client’s actual IP address

 * [wph_request_getClientOs]

Returns whether the client is running “Windows”, “Mac”, “Linux” or “Other”.

## Installation

**Through Dashboard**

 1. Log in to your WordPress admin panel and go to Plugins -> Add New
 2. Type **WP Request** in the search box and click on search button.
 3. Find WP Request plugin.
 4. Then click on Install Now after that activate the plugin.
 5. Place any of the available shortcode through `<?php do_shortcode('[wph_request_getIpAddress]');?
    >` in your templates

**Installing Via FTP**

 1. Download **WP Request** plugin from https://wordpress.org/plugins/.
 2. Unzip.
 3. Upload the **wp-request** folder into your plugins directory.
 4. Log in to your WordPress admin panel and click the Plugins menu.
 5. Then activate the plugin.
 6. Place any of the available shortcode through `<?php do_shortcode('[wph_request_getIpAddress]');?
    >` in your templates

## Reviews

![](https://secure.gravatar.com/avatar/9ba23ce60d151aed325091fe10984f28666791ff4a9e6953b054fd6ab47e41fa?
s=60&d=retro&r=g)

### 󠀁[Best And Helpfull Plugin.](https://wordpress.org/support/topic/best-and-helpfull-plugin/)󠁿

 [avnish240292](https://profiles.wordpress.org/avnish240292/) abril 15, 2019

This is best plugin for handling WP Request, thanks to Hashtag Errors for making
very helpful of handling wp request.

 [ Read all 0 reviews ](https://wordpress.org/support/plugin/ht-request/reviews/)

## Contributors & Developers

“WP Request” is open source software. The following people have contributed to this
plugin.

Contributors

 *   [ hashtagerrors ](https://profiles.wordpress.org/hashtagerrors/)

[Translate “WP Request” into your language.](https://translate.wordpress.org/projects/wp-plugins/ht-request)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ht-request/), check
out the [SVN repository](https://plugins.svn.wordpress.org/ht-request/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/ht-request/) by 
[RSS](https://plugins.trac.wordpress.org/log/ht-request/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 0.1.0 – 2/29/2019

 * Initial Release

## Meta

 *  Version **1.0.0**
 *  Last updated **7 anyos ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 4.6 or higher **
 *  Tested up to **5.1.22**
 *  PHP version ** 5.2.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/ht-request/)
 *  [Advanced View](https://arg.wordpress.org/plugins/ht-request/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  1 5-star review     ](https://wordpress.org/support/plugin/ht-request/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/ht-request/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/ht-request/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/ht-request/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/ht-request/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/ht-request/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ht-request/reviews/)

## Contributors

 *   [ hashtagerrors ](https://profiles.wordpress.org/hashtagerrors/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ht-request/)