- availability:
-
WPML Version: 3.9.1
- description:
-
Synchronizes the values of all custom fields across all translations of a given post. It only does it if the translation option for these custom fields are set to Copy.
- type:
- action
- category:
- Miscellaneous
- parameters:
-
do_action( 'wpml_sync_all_custom_fields', $post_id );
For this action hook, you only need to provide an ID of a post for which you want to synchronize custom fields.
- hook example usage:
-
do_action( 'wpml_sync_all_custom_fields', 1234)