I have created a website initializing CMB2 for custom post types, fields, metaboxes etc. I have created a Custom Checkbox Field which acts like a Flag. Checked or Unchecked. This Checkbox rests in a Custom Post Type Metabox and is visible on the backend.
What we need to achieve is have a Button on the Front End for the User to click. When the button is clicked, the value of the checkbox should change (update_post_meta for this checkbox).
I suppose this should be done with AJAX, but got no previous experience with it.
Can anyone help with this?
Aucun commentaire:
Enregistrer un commentaire