Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Plugin Name: Secure Store (WordPress HTTPS)
- Plugin URI: http://mvied.com/projects/wordpress-https/
- Description: Uses WordPress HTTPS to secure URL's containing 'store'.
- Author: Mike Ems
- Version: 1.0
- Author URI: http://mvied.com/
- */
- function store_force_ssl( $force_ssl, $post_id ) {
- if ( strpos($_SERVER['REQUEST_URI'], 'store') !== false ) {
- $force_ssl = true;
- }
- return $force_ssl;
- }
- add_filter('force_ssl', 'store_force_ssl', 10, 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement