ผู้ใช้นี้ไม่มีหัวข้อที่ชื่นชอบ.
หัวข้อฟอรัมที่ชื่นชอบ
หัวข้อฟอรัมที่สร้าง
| สถานะ |
หัวข้อ
|
ผู้สนับสนุน | เสียง | โพสต์ | ความใหม่ |
|---|---|---|---|---|---|
|
Updating translation causes issues
1
2
เริ่มโดย: Natalie Wood ใน: English Support |
|
1 | 30 | 1 day, 10 hours มาแล้ว | |
|
Original language is being changed on some images
เริ่มโดย: Natalie Wood ใน: English Support |
|
0 | 16 | 3 months, 2 weeks มาแล้ว | |
|
Some images are being deleted by WPML after translation
1
2
เริ่มโดย: Natalie Wood ใน: English Support |
|
0 | 28 | 3 months, 3 weeks มาแล้ว | |
|
remove
เริ่มโดย: Natalie Wood
ใน: English Support
Problem:
add_action( 'admin_init', function() {
global $wp_filter;
$hook_name = 'admin_notices';
$priority = 10;
$class_name = 'WPML_ACF_Translatable_Groups_Checker';
$method = 'report_untranslated_groups';
// Make sure this hook is defined and is a WP_Hook object
if ( isset( $wp_filter[ $hook_name ] ) && is_a( $wp_filter[ $hook_name ], 'WP_Hook' ) ) {
$hook = $wp_filter[ $hook_name ];
// Check that priority exists in the callbacks array
if ( isset( $hook->callbacks[ $priority ] ) ) {
// Loop through each callback at that priority
foreach ( $hook->callbacks[ $priority ] as $unique_id => $callback_data ) {
// Each callback's function is stored in $callback_data['function']
$callback = $callback_data['function'] ?? null;
if ( is_array( $callback ) ) {
[$object_or_class, $callback_method] = $callback;
// Match both the method name and the class
if ( $callback_method === $method
&& is_object( $object_or_class )
&& get_class( $object_or_class ) === $class_name
) {
// Remove it!
unset( $hook->callbacks[ $priority ][ $unique_id ] );
}
}
}
}
}
}, 11 );
This code checks for the specific admin notice and removes it. If this solution does not resolve your issue or seems outdated, please check the related known issues, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. If the problem persists, we highly recommend opening a new support ticket at WPML support forum. |
|
0 | 6 | 4 months, 3 weeks มาแล้ว | |
|
Opening Gravity Forms section in translation management page causes WordPress database error & form …
เริ่มโดย: Natalie Wood ใน: English Support |
|
0 | 14 | 6 months มาแล้ว |