Skip to content

Instantly share code, notes, and snippets.

@paulund
Created February 23, 2013 15:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulund/5020202 to your computer and use it in GitHub Desktop.
Save paulund/5020202 to your computer and use it in GitHub Desktop.
Force certain Wordpress pages to use SSL
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