WPML
Stato
In attesa dell’autore
Plugin/tema correlato
WP Job Manager
Tag dell’argomento
Compatibility

Panoramica del problema

Quando usi WPML con il componente aggiuntivo Applications di WP Job Manager, nella candidatura il curriculum appare in tutte le lingue nel menu a tendina invece che nella lingua attualmente selezionata.

Soluzione alternativa

Assicurati di avere un backup completo del sito prima di procedere.


  • Apri il file …/wp-content/plugins/wp-job-manager-applications/includes/class-wp-job-manager-applications-apply.php.

  • Cerca la riga 250.

  • Sostituisci:
    $args         = apply_filters(
        'resume_manager_get_application_form_resumes_args',
        [
            'post_type'           => 'resume',
            'post_status'         => [ 'publish' ],
            'ignore_sticky_posts' => 1,
            'posts_per_page'      => -1,
            'orderby'             => 'date',
            'order'               => 'desc',
            'author'              => get_current_user_id(),
        ]
    );

  • Con:
    // WPML Workaround for compsupp-7819
    $args         = apply_filters(
        'resume_manager_get_application_form_resumes_args',
        [
            'post_type'           => 'resume',
            'post_status'         => [ 'publish' ],
            'ignore_sticky_posts' => 1,
            'posts_per_page'      => -1,
            'orderby'             => 'date',
            'order'               => 'desc',
            'author'              => get_current_user_id(),
            'suppress_filters'    => false, // add this line
        ]
    );

Tutti i problemi noti →