Support » Plugin: WordPress SSL » Filtering the content

  • Topher

    (@topher1kenobe)


    Your function for the_content wasn’t swapping out my protocols properly, so I wrote it to be like this:

    public function the_content($content) {
            $content = preg_replace('#https?://#', '//', $content );
            return $content;
        }

    Now it works perfectly.

    I don’t know how to force my homepage to https though, any ideas?

    https://wordpress.org/plugins/wp-ssl/

  • The topic ‘Filtering the content’ is closed to new replies.