Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi,

    Which version of WP FullCalendar do you have?

    Ad far as I know there’s no reason not to use admin-ajax.php in front-facing plugins.

    Thread Starter n1ckn4mee

    (@n1ckn4mee)

    I have Version 0.8.4 of WP FullCalendar and Version 5.5.3.1 of Events Manager…

    Yes but it does not work if you use self signed ssl certificates for the https connection. It is no problem at all if they are accepted and no one even recognizes that those requests to admin-ajax.php are SSL encrypted…

    Plugin Support angelo_nwl

    (@angelo_nwl)

    maybe you can try custom coding for this

    eg. modify if needed

    function my_em_force_ssl( $template ){
    	if( !is_ssl() && em_is_event_page() ){
    		wp_redirect(str_replace('http:','https:', get_permalink()));
    		die();
    	}
    	return $template;
    }
    add_filter('template_redirect', 'my_em_force_ssl', 10 );

    You can modify localize_script() in wp-fullcalendar.php so that admin-ajax.php is always called over HTTP:

    //$js_vars['ajaxurl'] = admin_url('admin-ajax.php');
    $js_vars['ajaxurl'] = admin_url('admin-ajax.php', 'http');
    Thread Starter n1ckn4mee

    (@n1ckn4mee)

    Thanks Dylan Barlett that works i used it with conditional is_ssl() to make it use https on ssl sites like before ??

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘admin-ajax.php call uses HTTPS but should use http (Force SSL Login/Admin true)’ is closed to new replies.