duplicate_post_allow

duplicate_post_allow

Hook Type: filter

See hook in core

Displaying hooks found in version: duplicate-post.4.5

apply_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(