[Plugin: WordPress HTTPS] Disable temporarily for specific page
-
Is there a simple way – in functions.php – to say:
if (condition met) { $forceSSL = false; }
?
I’ve been trying to figure out a way to programmatically disable or enable the plugin without touching the plugin code, and am having some difficulty… but I don’t want it disabled for the entire site, just specific pages based on specific criteria.
$forceSSL = get_post_meta($post->ID, 'force_ssl', true); if ( !$this->is_ssl() && $forceSSL ) { $this->redirect('https'); } else if ( get_option('wordpress-https_exclusive_https') == 1 && !$forceSSL ) { $this->redirect('http'); }
There is no filter available for post meta content, therefore, I cannot change it based on specific parameters (which would be defined in functions.php).
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘[Plugin: WordPress HTTPS] Disable temporarily for specific page’ is closed to new replies.