WP Manifestindependent plugin directory
manifest / utilities / map.mv

Mappa trova il tuo vivai

Un plugin con mappa interattiva per trovare vivai.

★ 0stars

Install

Download source zip No release zip yet

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.zip
No 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