Support » Plugin: Import any XML or CSV File to WordPress » Disable/Skip check duplicate during import

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @zxc999

    So please add the options checkbox “do not check for duplicates when importing”

    Thanks for the suggestion! I will post this request internally for discussion.

    For now, you can disable the check for duplicates by using the filter described in your first link. Here’s an example that would only disable the check for import ID 10:

    add_filter( 'wp_all_import_is_check_duplicates', 'wpai_is_check_duplicates', 10, 2 );
    
    function wpai_is_check_duplicates( $is_check_duplicates, $import_id ) {
        return ( $import_id == 10 ) ? false : true;
    }
    • This reply was modified 3 years, 5 months ago by WP All Import.

    but my import isn’t save… so I cant use ID=10 or other
    but I use first instalation of plugin so I guess that ID=1

    so keep in mind that it is to apply regardless of the ID

    Plugin Author WP All Import

    (@wpallimport)

    Hey @zxc999

    You can simply return “false” to disable duplicate checks for every import:

    add_filter( 'wp_all_import_is_check_duplicates', 'wpai_is_check_duplicates', 10, 2 );
    
    function wpai_is_check_duplicates( $is_check_duplicates, $import_id ) {
        return false;
    }

    You should remove this code after the imports first run, otherwise it will import duplicate posts every time you run it.

    hi @wpallimpor
    could you please let us know how to disable check duplicate in details? which file, which line to add which code?

    I would appreciate if you can add a feature that disable checks duplicate.

    • This reply was modified 3 years, 3 months ago by aerochris.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Disable/Skip check duplicate during import’ is closed to new replies.