Support for polylang
-
Hello,
i had problem with duplicating posts when Polylang was installed. Because Duplicate Posts plugin also copied post_translations values that are applied to post via polylang. I added following lines in duplicate-post-options.php to resolve problem. ( Ofcourse another SAVE of options in admin is needed 🙂 )
Add following lines on line 151 in duplicate-post-options-page.php
<?php if (is_plugin_active('polylang/polylang.php')): ?> <label style="display: block;"> <input type="checkbox" name="duplicate_post_taxonomies_blacklist[]" value="post_translations" <?php if(in_array('post_translations',$taxonomies_blacklist)) echo 'checked="checked"'?> />Post Translations</label> <?php endif; ?>
I just wanted to share my fix for polylang problem. Maybe author can include it in next version.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Support for polylang’ is closed to new replies.