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 - Resume Shown in All Languages When Using Application Form #2871

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

Comments

@nicolasviallet
Copy link

Is your feature request related to a problem? Please describe

When using the editable application form provided by WP Job Manager’s add-on Resume Manager with WPML, the resume appears in all languages in the dropdown instead of the currently selected language.

Describe the solution you'd like

Please, make sure of having a full site backup of your site before proceeding.

  • Open the …/wp-content/plugins/wp-job-manager-resumes/includes/class-wp-resume-manager-apply.php file.
  • Look for line 83.
  • 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:
$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, //add this line 
    ]
);

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