This thread is resolved. Here is a description of the problem and solution.
Problem:
The client reported an issue where resumes are duplicated like jobs in the WP Job Manager Resumes plugin, and when deleted from the frontend, only the current resume is deleted, not the copies.
Solution:
We recommend following these steps after ensuring you have a full site backup:
1) Navigate to the
/wp-content/plugins/wp-job-manager-resumes/includes/
folder.
2) Open the
class-wp-resume-manager-shortcodes.php
file for editing.
3) Locate line number 125.
4) Modify the code as follows:
From
case 'delete': // Trash it. wp_trash_post( $resume_id );
To
case 'delete': // Trash it. // WPML workaround for compsupp-7757 $trid = apply_filters( 'wpml_element_trid', NULL, $resume_id , 'post_resume' ); $translations = apply_filters( 'wpml_get_element_translations', NULL, $trid, 'resume' ); if ( !empty( $translations ) ) { foreach ( $translations as $lang => $translation ) { $translation_id = absint( $translation->element_id ); wp_trash_post( $translation_id ); } }
Please note that this workaround will delete translations, irrespective of the "When deleting a post, delete translations as well" option.
If this solution does not resolve your issue or seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If the problem persists, please open a new support ticket at WPML support forum.
This is the technical support forum for WPML - the multilingual WordPress plugin.
Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.
This topic is split from https://wpml.org/forums/topic/post-deletion-documentation-when-what/