• Hi, is it possible to send the current language in the Ajax call? When changing a drop-down, the result always falls back to the default language.

    Like

    $.ajaxSetup({
    beforeSend: function (jqXHR, settings) {

    if (settings.type==’POST’) {
    if (typeof settings.data === “string”) {
    settings.data = (settings.data ? settings.data+’&’ : ”)+falang.query_var+”=”+falang.current;

    …..

    in the file

    wp-content/plugins/wp-job-openings/assets/js/public/job-listings.js

    there are code 

    $.ajax({
    url: awsmJobsPublic.ajaxurl,
    data: $.param(wpData),

    where 

    if (typeof lang !== ‘undefined’) {
    wpData.push({
    name: ‘lang’,
    value: lang
    });
    }

    The page I need help with: [log in to see the link]

  • You must be logged in to reply to this topic.