WPML
PHP
wpml_sync_custom_field_copied_value

Description

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_valuemixedRequired

    The unserialized and slashed value.
  • $post_id_fromintOptional

    The ID of the source post.
  • $post_id_tointOptional

    The ID of the destination post.
  • $meta_keystringOptional

    The key of the post meta being copied.
  • $argsarrayOptional

    The internal parameters.

Example Usage

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