Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rsharrer/6705617 to your computer and use it in GitHub Desktop.
Save rsharrer/6705617 to your computer and use it in GitHub Desktop.
WP-Functions /Force specific pages to be secure, ssl, https
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