• Resolved birdog123

    (@birdog123)


    Hi,

    Will this method https://really-simple-ssl.com/knowledge-base/uninstall-websitebackend-not-accessible/ work for a SUBSITE on the multisite WP network where it will ONLY AFFECT the SUBSITE we browser to that url to deactivate and go back to http? It will NOT affect other subsites and will not affect the primary WP network domain right?

    I just want to go back to http for now on one SUBSITE on a WP network multisite. How can I do that and not have issues on the network, primary site, or other subsites that are using it?

    ??

    Greg

Viewing 1 replies (of 1 total)
  • Plugin Contributor Rogier Lankhorst

    (@rogierlankhorst)

    Hi Greg,

    The method described in this article will deactivate all sites, and the plugin as well, so is not a good method in this case.

    I think this should do the trick (where you should replace 1 with the actual blog_id of course):

            add_action('plugins_loaded', 'deactivate_one_site', 20);
            function deactivate_one_site(){
                $blog_id = 1;
                switch_to_blog($blog_id);
                RSSSL()->really_simple_ssl->deactivate_ssl();
                restore_current_blog();
            }

    This function loads the blog you want to deactivate, runs the deactivation process, then switches back.

    The add action is needed to make sure the RSSSL() class is loaded.

Viewing 1 replies (of 1 total)
  • The topic ‘Only Want To Go To HTTP For Now On A Subsite Only On A WP Network’ is closed to new replies.