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
jsondirectory withing your public root folder. - make a
stores.jsonfile :-
[ { "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
其他信息
- 授权协议: Unknown
- 更新时间: 2021-04-13