// Hook auf den Dupliziervorgang add_action('post_duplicate_post', function($new_post_id, $post) { if ($post->post_type !== 'atom_playlist') return; // Hol alle Meta-Felder (besonders unsere Tracks) $tracks = get_post_meta($post->ID, '_atom_audio_tracks', true); if (!empty($tracks)) { update_post_meta($new_post_id, '_atom_audio_tracks', $tracks); } // Optional: Shuffle-Status ebenfalls übernehmen $shuffle = get_post_meta($post->ID, '_atom_audio_shuffle', true); if (!empty($shuffle)) { update_post_meta($new_post_id, '_atom_audio_shuffle', $shuffle); } }, 10, 2); tom-wuergert.de

Coming Soon

00

days


00

hours


00

minutes


00

seconds