• A little suggestions:

    1. Clear post_author before insert post.
    unset( $duplicate[‘guid’] );
    unset( $duplicate[‘comment_count’] );
    + unset( $duplicate[‘post_author’] );

    It is useful for a case when a contributor or author duplicates a post that is created by user with higher role.

    2. Synchronize default setting at the mtphr_post_duplicator_initialize_settings (status = same)
    and get_mtphr_post_duplicator_settings (status = draft)

    Setting are not saved into DB while user doesn’t save they manually at the plugin setting page. In this case at the setting page post status = draft but really default setttings status = same

    https://www.ads-software.com/plugins/post-duplicator/

Viewing 1 replies (of 1 total)
  • Plugin Author metaphorcreations

    (@metaphorcreations)

    Thanks for these suggestions! I will definitely update #2 and will look into #1 to see what affect removing the author has on the duplicate post.

Viewing 1 replies (of 1 total)
  • The topic ‘Duplicate post_author & default settings’ is closed to new replies.