duplicate_post_after_rewriting

duplicate_post_after_rewriting

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: duplicate-post.4.5

do_action('duplicate_post_after_rewriting') is found 1 times:

  • /src/post-republisher.php line 293
    		 *
    		 * @param int $copy_id The copy's ID.
    		 * @param int $post_id The original post's ID..
    		 */
    		\do_action( 'duplicate_post_after_rewriting', $copy_id, $post_id );
    
    		// Delete the copy bypassing the trash so it also deletes the copy post meta.
    		\wp_delete_post( $copy_id, $permanently_delete );
    
    		if ( ! \is_null( $post_id ) ) {
    			// Delete the meta that marks the original post has having a copy.
    

See this hook used in plugins: