Created
September 25, 2013 20:33
-
-
Save rsharrer/6705617 to your computer and use it in GitHub Desktop.
WP-Functions /Force specific pages to be secure, ssl, https
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function wps_force_ssl( $force_ssl, $post_id = 0, $url = '' ) { | |
if ( $post_id == 25 ) { | |
return true | |
} | |
return $force_ssl; | |
} | |
add_filter('force_ssl' , 'wps_force_ssl', 10, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment