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

Panoramica del problema

Quando utilizzi il modulo di candidatura modificabile fornito dal componente aggiuntivo Resume Manager di WP Job Manager, il curriculum appare in tutte le lingue nel menu a discesa anziché 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-resumes/includes/class-wp-resume-manager-apply.php.

  • Cerca la riga 83.

  • All’interno del metodo get_user_resumes(), sostituisci il seguente frammento:
    $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(),
    	]
    );

  • Con:
    // WPML Workaround for compsupp-7819
    $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 
    	]
    );

Tutti i problemi noti →