Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/gianfranco2605/map.mv/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Shortcode [ntg-mappa]
Come Usare
Vivai
[ntg-mappa type="vivai"]
Giardinieri
[ntg-mappa type="giardinieri"]
⚠️ Importante
Funziona SOLO nell'area Admin WordPress!
Come Recuperare i Venditori Selezionati
I dati vengono salvati automaticamente in un input nascosto con classe .ntg-selected-vendors-input.
Per ottenere solo gli ID (array di numeri):
const input = document.querySelector('.ntg-selected-vendors-input');
const ids = JSON.parse(input.getAttribute('data-vendor-ids') || '[]');
// ids = [123, 456, 789]
$vendors = json_decode($_POST['ntg_selected_vendors'], true);
$ids = array_column($vendors, 'ID');
// $ids = [123, 456, 789]
Versione Plugin: 1.0.2