dp_duplicate_post

dp_duplicate_post

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: duplicate-post.4.5

do_action('dp_duplicate_post') is found 1 times:

  • /admin-functions.php line 721
    717
    718
    719
    720
    721
    722
    723
    724
    725
    726
        if ( $post->post_type === 'page' || is_post_type_hierarchical( $post->post_type ) ) {
            do_action( 'dp_duplicate_page', $new_post_id, $post, $status );
        }
        else {
            do_action( 'dp_duplicate_post', $new_post_id, $post, $status );
        }
     
        delete_post_meta( $new_post_id, '_dp_original' );
        add_post_meta( $new_post_id, '_dp_original', $post->ID );
    }

See this hook used in plugins: