add_filter('wms_attribute_action', 'msw_attributes_delete',10);
function msw_attributes_delete($aAttributes)
{
$aUnsetAttributes = array('Имя вашего атрибута 1', 'Имя вашего атрибута 2', 'Имя вашего атрибута 3');
foreach ($aAttributes as $key => $value) {
if (in_array($value['name'], $aUnsetAttributes)) {
unset($aAttributes[$key]);
}
}
$aNewAttributes = array();
foreach ($aAttributes as $key => $value) {
$aNewAttributes[] = $value;
}
return $aNewAttributes;
}
Данное решение позволяет исключить атрибуты из загрузки на сайт.
