1
Я пытаюсь изменить тег title, добавляя переменную (товарный бренд), но переменная не отображается.Изменить название тега с фильтром wpseo_title
add_filter('wpseo_title', 'filter_product_wpseo_title');
function filter_product_wpseo_title() {
return 'hello'. $_GET[$mysite_slugs['product-brand']] .'hello';
};
}
попытался Также это, но не повезло
add_filter('wpseo_title', 'filter_product_wpseo_title');
function filter_product_wpseo_title() {
$productbrand = $_GET[$mysite_slugs['product-brand']];
return 'hello'. $productbrand .'hello';
};
}