Wordpress Plugin URL parameter

Closed Posted 3 years ago Paid on delivery
Closed Paid on delivery

Hi I have a wordpress plugin that reads the GeoIP country and diverts users to that subdomain. My issue is I want to be able to pass a url parameter to bypass this something like [login to view URL]

The following is sample code of what I am currently doing which works. Just missing that one piece of turning the redirection off based on the parameter.

<!-- Functions -->

<?php

add_shortcode('geo_redirect', 'geo_short_code');

function geo_short_code(){

$country = getenv(GEOIP_CITY_COUNTRY_CODE);

echo 'country code: '.$country.'<br>';

switch($country) {

case "AU":

break;

case "CA":

header("Location: [login to view URL]");

break;

case "GB":

header("Location: [login to view URL]");

break;

case "NZ":

header("Location: [login to view URL]");

break;

case "US":

header("Location: [login to view URL]");

break;

default:

header("Location: [login to view URL]");

break;

}

}

?>

I CANNOT give you access to my server or wordpress instance due to privacy issues. This project is very small and is fixed price in Australian Dollars.

PHP WordPress

Project ID: #26012081

About the project

5 proposals Remote project Active 3 years ago

5 freelancers are bidding on average $43 for this job

tdteam

Hello, I'm wordpress expert, I have more than 9 years experience in html, css, jquery, php, wordpress, joomla,.... I customized, created many themes, plugins. Please discuss, thank you!

$30 AUD in 1 day
(161 Reviews)
6.6
greatswork

I have high specialization and experience in the development of software and web platforms. I have the following skills Programming languages: C, C++, C#, Matlab, Java, Python, VB Front-End skills: - PHP, Aspx NET C More

$100 AUD in 1 day
(11 Reviews)
4.9
prashant8080

Hello, We had gone through your brief and willing to work with you on this project by providing quality work for your website in best price. We having huge experience in Web Development and Desging. We having expert More

$35 AUD in 3 days
(0 Reviews)
0.0