[Resolved] Translation of the woocommerce taxonomy
This thread is resolved. Here is a description of the problem and solution.
Проблема: Клиент создал таксономию для WooCommerce Brands на своем сайте, но она не переводится. Решение: Если вы столкнулись с аналогичной проблемой, мы рекомендуем сделать вашу кастомную таксономию переводимой. Перейдите на страницу WPML → Настройки и прокрутите до раздела таксономий, которую вы хотите сделать переводимой, и установите значение как переводимо. Для более подробной информации посетите документацию по переводу кастомных типов.
Решение может быть неактуальным, так как оно может быть устаревшим или не подходить для вашего случая. Если проблема сохраняется, рекомендуем открыть новый тикет в службе поддержки. Также настоятельно рекомендуем проверить известные проблемы, убедиться в версии постоянного исправления и подтвердить, что у вас установлены последние версии тем и плагинов.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
// Сохраняем изображение бренда
function save_brand_image($term_id) {
if (isset($_POST['brand-image'])) {
update_term_meta($term_id, 'brand-image', $_POST['brand-image']);
}
}
add_action('created_pwb-brand', 'save_brand_image', 10, 2);
// Добавляем поле изображения в форму редактирования бренда
function edit_brand_image_field($term, $taxonomy) {
$image_id = get_term_meta($term->term_id, 'brand-image', true);
$image_url = wp_get_attachment_url($image_id);
Скорее всего, Вы не сделали Вашу кастомнную таксономию переводимой.
Перейдите на страницу WPML → Настройки и прокрутите до раздела таксономий, которую Вы хотите сделать переводимой и установите значение, как переводимо.
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.