Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nicolasviallet opened this issue Jan 17, 2025 · 0 comments

Comments

@nicolasviallet
Copy link

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
    ]
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant