我在函数中使用此代码。php在我的事件管理器页面上加载https:
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 );
离开这些页面时,有没有办法卸载或还原回http?