devti
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
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.
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.
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/PNCCYgkW
Viewing 3 replies - 1 through 3 (of 3 total)