WordPress.org

Forums

HTTPS for WordPress
helper function isHTTPS($post_id) (1 post)

  1. sboisvert
    Member
    Posted 4 years ago #

    I use this helper function in my theme to change some widgets around if the page is HTTPS, perhaps it can be of use (or be put in the class)

    function isHTTPS($post_id){
    	if(is_null($post_id)){
    		global $post;
    		$post_id = $post->ID;
    	}
    	return get_post_meta($post_id, 'force_ssl',true);
      }

    http://wordpress.org/extend/plugins/https-for-wordpress/

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • HTTPS for WordPress
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic