duplicate_post_allow
duplicate_post_allow
Appears in: 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.5
Hook Type: filter
Displaying hooks found in version: duplicate-post.4.5apply_filters('duplicate_post_allow') is found 1 times:
- /admin-functions.php line 595
* @param int $parent_id The parent post ID if we are calling this recursively. * * @return bool */ $can_duplicate = apply_filters( 'duplicate_post_allow', true, $post, $status, $parent_id ); if ( ! $can_duplicate ) { wp_die( esc_html( __( 'You aren\'t allowed to duplicate this post', 'duplicate-post' ) ) ); } if ( ! duplicate_post_is_post_type_enabled( $post->post_type ) && $post->post_type !== 'attachment' ) { wp_die(