Support » Plugin: WordPress HTTPS (SSL) » [Plugin: WordPress HTTPS] Force SSL from a plugin

  • Resolved andy_moyle

    (@andy_moyle)


    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 Mike Ems

    (@mvied)

    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 function so that if the field doesn’t exist, it will be created, and updated if it already exists.

    Thanks,
    Mike

    wow that was quick! I’d just trawled through your code and worked it out too!!!
    update_post_meta($post_id,'force_ssl',1);

    I have a simliar issue with the default WP login page. The page has been customized and uses a plugin Logo Login.

    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.