Title: [Plugin: WordPress HTTPS] Force SSL from a plugin
Last modified: August 19, 2016

---

# [Plugin: WordPress HTTPS] Force SSL from a plugin

 *  Resolved [andy_moyle](https://wordpress.org/support/users/andy_moyle/)
 * (@andy_moyle)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-force-ssl-from-a-plugin/)
 * A plugin I have creates pages that need to be ssl – how do I do that programmatically
   with your plugin installed please?
 * It’s a one off plugin, so it can be assumed your plugin is installed!!!

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [mvied](https://wordpress.org/support/users/mvied/)
 * (@mvied)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-force-ssl-from-a-plugin/#post-1955380)
 * Hey Andy,
 * The plugin uses custom fields to toggle forcing SSL on a page. You can simply
   set a custom field named ‘force_ssl’ to 1 for the page you want secured. I would
   recommend using the [update_post_meta](http://codex.wordpress.org/Function_Reference/update_post_meta)
   function so that if the field doesn’t exist, it will be created, and updated 
   if it already exists.
 * Thanks,
    Mike
 *  Thread Starter [andy_moyle](https://wordpress.org/support/users/andy_moyle/)
 * (@andy_moyle)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-force-ssl-from-a-plugin/#post-1955389)
 * wow that was quick! I’d just trawled through your code and worked it out too!!!
   `
   update_post_meta($post_id,'force_ssl',1);`
 *  [wpmaster49](https://wordpress.org/support/users/wpmaster49/)
 * (@wpmaster49)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-force-ssl-from-a-plugin/#post-1955570)
 * I have a simliar issue with the default WP login page. The page has been customized
   and uses a plugin [Logo Login](http://wordpress.org/extend/plugins/login-logo/).
 * Viewing the https version of the page in IE the security alert errors pop up.
   I viewed the page source and see the logo is pulling from an HTTP source and 
   not HTTPS.
 * How exactly do I force ssl on this default WP login page using your plugin?
 * Thanks
 * Dante

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘[Plugin: WordPress HTTPS] Force SSL from a plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wordpress-https_bec2c9.svg)
 * [WordPress HTTPS (SSL)](https://wordpress.org/plugins/wordpress-https/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-https/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-https/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-https/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-https/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-https/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [wpmaster49](https://wordpress.org/support/users/wpmaster49/)
 * Last activity: [15 years, 2 months ago](https://wordpress.org/support/topic/plugin-wordpress-https-force-ssl-from-a-plugin/#post-1955570)
 * Status: resolved