Hook to Secure Multiple URLs?
-
Per the FAQ, I edited my functions.php with a hook to secure a checkout url that’s out of reach of the WP dashboard, and that works great ?? But I am not sure how to force a second URL with the same method? I created a second function – custom_force_ssl2 – but this doesn’t seem to work. Should it? Is there something I am missing? Can I target multiple URLs within the same function?
This is what I have now:
function custom_force_ssl( $force_ssl, $url = 'https://mysite.com/wp-content/processOrder.php' ) { if ( $url = 'https://mysite.com/wp-content/processOrder.php' ) { $force_ssl = true; } return $force_ssl; } add_filter('force_ssl' , 'custom_force_ssl', 10, 3);
- The topic ‘Hook to Secure Multiple URLs?’ is closed to new replies.