Prepare New Version
Sometimes happiness is about small things. What about being able to prepare a new version of your content while its original is still online? Anticipating and preparing the next version of an article which is already online can quickly become a tedious and risky task. Indeed, most publishers will cr
Sometimes happiness is about small things. What about being able to prepare a new version of your content while its original is still online?
Anticipating and preparing the next version of an article which is already online can quickly become a tedious and risky task. Indeed, most publishers will create a brand new post, fill it in, publish it once it’s ready and finally disable the original article.
Basic features:
- creation of a new version of an article in 1 click;
- direct access to other pending versions of an article;
- update of an article to its new version in 1 click.
Advanced features:
- duplication of an article into a brand new independent copy;
- hookable 😉
- works with any post types, custom or not
- makes coffee (we’re still working on that)
About
Hooks
pnv_duplicata_status_args Filter that can be used to alter arguments sent to ‘register_post_status’. Default arguments are:
- label => Duplicate
- public => false
- exclude_from_search => true
- show_in_admin_all_list => false
- label_count =>
- singular => Duplicate (%s)
- plural => Duplicates (%s)
pnv_erase_content_destination Filter that can be used to alter $destination array before ‘wp_insert_post’ get called when a copy, duplication or replacement is triggered This filter sends 3 other parameters: the $source object (WP_Post instance) and the $copy boolean
pnv_filtered_metas Filter that can be used to alter meta names that must not be treated while a post is copied, duplicated or replaced The default metas is an array with these values: