dp_duplicate_page

dp_duplicate_page

Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: duplicate-post.4.5

do_action('dp_duplicate_page') is found 1 times:

  • /admin-functions.php line 718
    	// information about a post you can hook this action to dupe that data.
    	if ( $new_post_id !== 0 && ! is_wp_error( $new_post_id ) ) {
    
    		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' );
    

See this hook used in plugins: