Skip to content

Instantly share code, notes, and snippets.

@fikrirasyid
Created February 5, 2015 16:21
Show Gist options
  • Save fikrirasyid/e64490a0f8784e7d3635 to your computer and use it in GitHub Desktop.
Save fikrirasyid/e64490a0f8784e7d3635 to your computer and use it in GitHub Desktop.
Force All Pages to Use HTTPS Using WordPress HTTPS Plugin
function force_ssl_for_all( $force_ssl, $post_id = 0, $url = '' ){
return true;
}
add_filter( 'force_ssl', 'force_ssl_for_all', 10, 3 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment