Configuration
Lokilo has two configuration areas: the store locations you add as content, and the Lokilo settings page that controls how the directory looks. The [lokilo] shortcode then renders it. The settings live on one screen under WooCommerce > Lokilo and are stored in a single option, locator_settings.
Store locations
Section titled “Store locations”Each store is a locator_store post under WooCommerce > Store Locations. Add one entry per physical shop. The Location details box holds:
- Street address, multi-line.
- City, Postcode / ZIP, Country, single-line.
- Phone, rendered on the card as a click-to-call
tel:link, with non-digits stripped from the href so the dialler gets clean digits. - Email, sanitised as an email address and rendered on the card as a
mailto:link. - Latitude / Longitude, optional decimal degrees, validated to range (-90 to 90 and -180 to 180) on save; anything blank, non-numeric or out of range is cleared.
- Opening hours, free text, displayed as entered (line breaks preserved).
The post title is the store name; the editor body is an optional description. Saving the box is gated behind a nonce and the manage_woocommerce capability, and every field is sanitised on save.
Fields the storefront actually renders
Section titled “Fields the storefront actually renders”The card shows the name always, then, when the matching toggle is on and the store has a value, the featured image, description, address block (street, postcode + city, country), opening hours, phone and email. Under the address the card adds a Get directions link to OpenStreetMap, opening in a new tab. With coordinates it routes to them exactly; without them OpenStreetMap searches the address. The link appears only with the address block, and nothing is loaded or sent until the visitor clicks it.
Lokilo settings
Section titled “Lokilo settings”Open WooCommerce > Lokilo. There are two groups of settings:
Search box
Section titled “Search box”On by default (show_search). When on, a search field appears above the results and visitors filter locations as they type. Filtering happens in the browser, so no data leaves the page. Turn it off if you only list a handful of stores.
Fields shown on each card
Section titled “Fields shown on each card”Six checkboxes, Store photo, Description, Address, Opening hours, Phone and Email, stored under fields in the option. All six default to on. The store name is always shown and is not a toggle. A field that is enabled but empty for a given store simply does not render for that card, so a half-filled location never shows blank rows.
There is no layout setting and no grid, Lokilo renders a single list. There is no separate setting for the directions link; it follows the Address toggle.
The [lokilo] shortcode
Section titled “The [lokilo] shortcode”Place the directory on any page or post:
[lokilo]It takes one attribute, limit: the number of locations to render, default 200, -1 for all, 0 for the default. Change the default with the locator/default_limit filter. When more stores exist than the limit, the list says how many it shows and the search reaches only the cards on the page. Presentation is controlled entirely by the settings above, applied site-wide. The Store Locator block renders the same directory as the shortcode without attributes. Lokilo only enqueues its CSS and JavaScript on pages where the shortcode actually rendered, so other pages stay lean.
Privacy and performance
Section titled “Privacy and performance”There is nothing to configure for privacy: the directory is self-contained. No external API, no tracking, no map key. Locations render server-side, so the list works with JavaScript disabled; when JavaScript runs it only filters cards already on the page. The markup reserves its space, so it adds no layout shift.
Storage and cleanup
Section titled “Storage and cleanup”Settings live in the single locator_settings option. Store locations are ordinary posts of the locator_store type with their details in post meta (_locator_address, _locator_city, _locator_postcode, _locator_country, _locator_phone, _locator_email, _locator_hours, _locator_lat, _locator_lng), no custom tables.
Deleting the plugin runs the uninstall routine, which removes the locator_settings and locator_db_version options (on every site of a multisite network) and the locator_pro_banner_dismissed user meta. Your store locations are left intact, they are your content. If you want them gone, delete the Store Location posts before removing the plugin.