Created

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist

Disable PMPro's HTTP/HTTPS redirect code.

View pmpro-disable-https-redirect.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<?php
/*
Plugin Name: PMPro Disable HTTP/HTTPS Redirect
Plugin URI: http://www.paidmembershipspro.com/wp/pmpro-disable-https-redirect/
Description: Disables the function in PMPro that redirects HTTP to HTTPS and vice versa.
Version: 1.0
Author: Stranger Studios
Author URI: http://www.strangerstudios.com
*/
function pmpro_dhr_init()
{
remove_action('wp', 'pmpro_besecure', 2);
remove_action('login_init', 'pmpro_besecure', 2);
}
add_action("init", "pmpro_dhr_init", 20);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.