Skip to content
This repository was archived by the owner on Feb 29, 2024. It is now read-only.

Commit 3c66c40

Browse files
committed
fix ACF integration
1 parent 20f7b00 commit 3c66c40

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

includes/integrations/class-wpm-acf.php

+4-4
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ public function update_value_pro( $value, $post_id, $field ) {
196196
return $value;
197197
}
198198

199-
remove_filter( 'acf/load_value', 'wpm_translate_value', 5 );
199+
remove_filter( 'acf/load_value', 'wpm_translate_value', 6 );
200200
$old_value = get_field( $field['name'], $post_id, false );
201-
add_filter( 'acf/load_value', 'wpm_translate_value', 5 );
201+
add_filter( 'acf/load_value', 'wpm_translate_value', 6 );
202202

203203
$value = wpm_set_new_value( $old_value, $value, $acf_field_config );
204204

@@ -258,9 +258,9 @@ public function update_value( $value, $post_id, $field ) {
258258
}
259259

260260
if ( $translate ) {
261-
remove_filter( 'acf/load_value', 'wpm_translate_value', 5 );
261+
remove_filter( 'acf/load_value', 'wpm_translate_value', 6 );
262262
$old_value = get_field( $field['name'], $post_id, false );
263-
add_filter( 'acf/load_value', 'wpm_translate_value', 5 );
263+
add_filter( 'acf/load_value', 'wpm_translate_value', 6 );
264264

265265
if ( ! wpm_is_ml_value( $value ) ) {
266266
$value = wpm_set_new_value( $old_value, $value, $acf_field_config );

0 commit comments

Comments
 (0)