Wordpress Plugin URL parameter
$10-30 AUD
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.
Project ID: #26012081
About the project
5 freelancers are bidding on average $43 for this job
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!
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
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