redirect to english page at online-bsss category.

This commit is contained in:
CBS Information System 2022-04-19 16:49:40 +09:00
parent 3df4af32a5
commit 529d07ee38

View File

@ -6,12 +6,18 @@
* @version 1.0.0
*/
get_header();
$postType = get_post_type();
global $wp_query;
$tax_slug = $wp_query->get_queried_object();
$isNoSideBar = 'online-bsss' === $tax_slug->slug;
$lang = get_query_var('lang', '');
if ($tax_slug->slug === 'online-bsss' && $lang === 'ja') {
$url = site_url('/online-bsss');
wp_safe_redirect($url, 301);
exit;
}
get_header();
$postType = get_post_type();
if ( !$postType ) {
global $wp_query;