4
I have a little problem with 2 dropdowns
selectors, so far so good, because I’m using the CMB2 plugin and a METABOX selector code, and everything is ok in the Wordpress Back-End, however, when I bring my METABOX to the Front-End it gives error in calling Ajax.
My guess is that the code is not recognizing my call Get_colors
... this would be my value catcher. Below is the code snippet where I found the error in debug
.
// ajaxurl is already defined in wp-admin, so no special stuff needed.
$.post( ajaxurl, {
action: 'get_colors',
value: new_val
}, app.handle_response, 'json' );
};
I also think that via Front-End not permission to access the values page to call the success
. If anyone can help me, I’d really appreciate it.
It also defined the
wp_ajax_nopriv
? Ideally show all relevant code.– brasofilo