do_action( 'wpml_sync_custom_field', $post_id, $custom_field );
- Type
- action
- Category
- Miscellaneous
- WPML Version
- 3.9.1
Description
Synchronizes the value of a specified custom field across all translations of a given post. It only does it if the translation option for this custom field is set to Copy.
Arguments
For this action hook, you only need to provide a post ID and the slug of the custom field you want to synchronize.Example usage
do_action( 'wpml_sync_custom_field', 1234, $event-date );
Related hooks
icl_ls_languages, wpml_sync_custom_field_copied_value, 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