- availability:
-
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).
- type:
- filter
- category:
- Miscellaneous
- parameters:
-
- $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.
- hook example usage:
-
$copied_value = apply_filters( 'wpml_sync_custom_field_copied_value', $copied_value, $post_id_from, $post_id_to, $meta_key, $args );