Automattic / Automattic/WP-Job-Manager

WP Job Manager - Resume Manager - Dropdown List Shows All Language Versions of Resumes

Open
#2,867 0 comments 0 reactions 0 assignees View on GitHub
Enhancement
Dominant language
PHP
Stars
899
Forks
369
Avg merge
11h 37m
Merged PRs (30d)
12

Description

### Is your feature request related to a problem? Please describe
When using WPML with the Resume Manager add-on of WP Job Manager, the dropdown list for selecting resumes shows all language versions of resumes, rather than only the resumes in the current language.

### Describe the solution you'd like

- Open the …/wp-content/plugins/wp-job-manager-resumes/includes/class-wp-resume-manager-apply.php file.
- Look for line 85.
- Inside the get_user_resumes() method, replace the following snippet:
```
$args = apply_filters(
'resume_manager_get_application_form_resumes_args',
[
'post_type' => 'resume',
'post_status' => [ 'publish', 'hidden' ],
'ignore_sticky_posts' => 1,
'posts_per_page' => -1,
'orderby' => 'date',
'order' => 'desc',
'author' => get_current_user_id(),
]
);
```
- With:
```
// WPML Workaround for compsupp-7799
$args = apply_filters(
'resume_manager_get_application_form_resumes_args',
[
'post_type' => 'resume',
'post_status' => [ 'publish', 'hidden' ],
'ignore_sticky_posts' => 1,
'posts_per_page' => -1,
'orderby' => 'date',
'order' => 'desc',
'author' => get_current_user_id(),
'suppress_filters' => false
]
);
```

Contributor guide

Open the contributing guide

Research direction

Open wp-content/plugins/wp-job-manager-resumes/includes/class-wp-resume-manager-apply.php and inspect get_user_resumes() around line 85. Review the resume query arguments and confirm that the completed change causes the application dropdown to show only resumes in the current WPML language.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.