Duplicate post_author & default settings
-
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
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Duplicate post_author & default settings’ is closed to new replies.