WPML
wpml_sync_custom_field_copied_value
Type
filter
Category
Miscellaneous
WPML Version
4.3.0

Description

Filters the post meta values before they are copied to the translation. In other words, it filters the $copied_value of a $meta_key that will be copied from one post (specified using $post_id_from) to another (specified using $post_id_to).

Arguments

$copied_value
(mixed) (Required) The unserialized and slashed value.
$post_id_from
(int) (Optional)The ID of the source post.
$post_id_to
(int) (Optional) The ID of the destination post.
$meta_key
(string) (Optional) The key of the post meta being copied.
$args
(array) (Optional) The internal parameters.

Example usage

$copied_value = apply_filters( 'wpml_sync_custom_field_copied_value', $copied_value, $post_id_from, $post_id_to, $meta_key, $args );

icl_ls_languages, wpml_ls_enable_ajax_navigation, wpml_element_type, wpml_setting, wpml_sub_setting, wpml_exclude_post_from_auto_translate, wpml_forms_config_ninja-forms, wpml_forms_config_wpforms, wpml_tf_feedback_open_link, wpml_translatable_user_meta_fields

All 30 Miscellaneous hooks →