Title: devti's Replies | WordPress.org

---

# devti

  [  ](https://wordpress.org/support/users/devti/)

 *   [Profile](https://wordpress.org/support/users/devti/)
 *   [Topics Started](https://wordpress.org/support/users/devti/topics/)
 *   [Replies Created](https://wordpress.org/support/users/devti/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/devti/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/devti/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/devti/engagements/)
 *   [Favorites](https://wordpress.org/support/users/devti/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[User Registration & Membership - Free & Paid Memberships, Subscriptions, Content Restriction, User Profile, Custom User Registration & Login Builder] How can I create a unique field for document number](https://wordpress.org/support/topic/how-can-i-create-a-unique-field-for-document-number/)
 *  Thread Starter [devti](https://wordpress.org/support/users/devti/)
 * (@devti)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/how-can-i-create-a-unique-field-for-document-number/#post-16262392)
 * Hi, thanks but that’s not what I need.
 * I need that a custom field of the registration form cannot exist duplicates, 
   that is, it must be unique.
 * I bought the pro full version but I don’t see any plugin that allows to do it
 * Thanks
    -  This reply was modified 3 years, 6 months ago by [devti](https://wordpress.org/support/users/devti/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets] When products are deleted from an uploaded csv the products do not go to the tra](https://wordpress.org/support/topic/when-products-are-deleted-from-an-uploaded-csv-the-products-do-not-go-to-the-tra/)
 *  Thread Starter [devti](https://wordpress.org/support/users/devti/)
 * (@devti)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/when-products-are-deleted-from-an-uploaded-csv-the-products-do-not-go-to-the-tra/#post-16213357)
 * [@wpallimport](https://wordpress.org/support/users/wpallimport/)
 * thanks for your answer. Develop this solution to avoid deleting something that
   is not in the trash:
 *     ```
       function modify_pre_delete_post_custom($delete, $post, $force_delete) { 
         if(function_exists('wp_all_import_get_import_id')){
   
           if(is_numeric(wp_all_import_get_import_id())){
             if( 'trash' !== $post->post_status ) {
               return wp_trash_post( $post->ID );
             }
           }
   
           return $delete;
   
         }
   
       }
   
       add_filter( "pre_delete_post", "modify_pre_delete_post_custom", 10, 3 );
       ```
   
 *  In your opinion, is correct?
 * Thanks!!!
    -  This reply was modified 3 years, 6 months ago by [devti](https://wordpress.org/support/users/devti/).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP All Import – Drag & Drop Import for CSV, XML, Excel & Google Sheets] When products are deleted from an uploaded csv the products do not go to the tra](https://wordpress.org/support/topic/when-products-are-deleted-from-an-uploaded-csv-the-products-do-not-go-to-the-tra/)
 *  Thread Starter [devti](https://wordpress.org/support/users/devti/)
 * (@devti)
 * [3 years, 7 months ago](https://wordpress.org/support/topic/when-products-are-deleted-from-an-uploaded-csv-the-products-do-not-go-to-the-tra/#post-16182632)
 * Hi thanks! however, the problem is when I delete the uploaded csv file and use
   the remove products option. At the moment we use pmxi_before_delete_post to notify
   our REST API in this moment but I would like the files to be left in the trash.
 * screenshots:
    [https://postimg.cc/jCBLXMsG](https://postimg.cc/jCBLXMsG) [https://postimg.cc/PNCCYgkW](https://postimg.cc/PNCCYgkW)

Viewing 3 replies - 1 through 3 (of 3 total)