WordPress.org

Ready to get started?Download WordPress

Forums

WordPress HTTPS (SSL)
[resolved] [Plugin: WordPress HTTPS] Force SSL from a plugin (4 posts)

  1. andy_moyle
    Member
    Posted 3 years ago #

    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!!!

  2. Mvied
    Member
    Plugin Author

    Posted 3 years ago #

    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

  3. andy_moyle
    Member
    Posted 3 years ago #

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

  4. wpmaster49
    Member
    Posted 3 years ago #

    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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic