dp_duplicate_page
Like this:
Like Loading...
Appears in:
duplicate-post.3.2.2,
duplicate-post.3.2.3,
duplicate-post.3.2.4,
duplicate-post.3.2.5,
duplicate-post.3.2.6,
duplicate-post.4.0.1,
duplicate-post.4.0.2,
duplicate-post.4.1.1,
duplicate-post.4.1.2,
duplicate-post.4.4,
duplicate-post.4.5Hook Type: action
See hook in action
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' );
Like this:
Like Loading...
See this hook used in plugins: