Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- *Duplicate QuickTexts on submit of Original to all secondary langs (for transaltion)
- */
- function duplicate_save_data_action($post_id, $form_data){
- // Change your CRED Form "ID" accordingly below
- if ($form_data['id']==18){
- // Use new WPML API
- do_action( 'wpml_make_post_duplicates', $post_id );
- }
- }
- add_action('cred_save_data', 'duplicate_save_data_action',10,2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement