WPML
wpml_apply_save_attachment_actions
Typ
filter
WPML-Version
4.4.0

Beschreibung

Wenn true zurückgegeben wird, synchronisiert WPML den Anhang mit seinen Übersetzungen (Status, Begriffe, benutzerdefinierte Felder).

Argumente

Ein boolescher Wert zum Aktivieren oder Deaktivieren der Synchronisation (Standard: false)


$post_id

(integer) Die ID des verarbeiteten Anhangs.

Anwendungsbeispiel

/**
* @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 );

wpml_set_translation_mode_for_post_type, wpml_st_force_translate_admin_options

Alle 3 Aktualisieren von Inhalten-Hooks →