Skip Navigation
availability:

WPML Version: 4.4.0

description:

When returning true, WPML will synchronize the attachment with its translations (status, terms, custom fields).

type:
filter
category:
Updating Content
parameters:

A boolean to enable or not the synchronization (default: false)

$post_id
(integer) The attachment ID being processed.
hook example usage:
/**
* @param bool $isEnabled
* @param int $postId
*/
function myplugin_apply_save_attachment_actions( $isEnabled, $postId ) {
    return true;
}
add_filter( 'wpml_apply_save_attachment_actions', 'myplugin_apply_save_attachment_actions', 10, 2 );