Created
February 23, 2013 15:51
-
-
Save paulund/5020202 to your computer and use it in GitHub Desktop.
Force certain Wordpress pages to use SSL
This file contains hidden or 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