jimvaneijk/wp-store-finder 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

jimvaneijk/wp-store-finder

Composer 安装命令:

composer require jimvaneijk/wp-store-finder

包简介

This plugin gives you the opportunity to add store to a map so customers can explore where you are located.

README 文档

README

A wordpress plugin which displays a map with all the stores that are configured by there location.

Add your Google api key in your .env

WP_STORE_FINDER_GOOGLE_API=[GOOGLE API]

Shortcode:

[wp-store-finder]

API:

Get all store

/wp-json/wp-store-finder/v1

Import locations:

  • Make a json directory withing your public root folder.
  • make a stores.json file :
    •   [
            {
                "name": "Store name",
                "street": "Lorem ipsumstreet",
                "number": "123",
                "zipcode": "1234 AB",
                "city": "Rotterdam",
                "position": {
                  "lat": [LATITUDE],
                  "lng": [LONGITUDE]
                }
            },
        ]
      

Important

This function is by default disabled. enable it by adding a .env prop called: WP_STORE_FINDER_ACCEPT_IMPORT=true

Conribution is welcome :)

###Jim van Eijk (jim@23g.nl)

统计信息

  • 总下载量: 158
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: Unknown
  • 更新时间: 2021-04-13