跳到内容

Google Maps Shell

v1.0

Aaron Brazell · 2012年12月12日 上架

This plugin is meant to be used in conjunction with external code that provides necessary coordinates to the plugin.

正在使用
10 以下
评分
暂无
累计下载
1,599
最近更新
2012年12月13日
需要 WordPress 3.4+已测试到 3.5.2

贡献者

This plugin is for developers and is meant to be used to enable Google Maps integration. While it does come with a default location, developers will want to feed the plugin a nested array of location data. This data can be manually curated or retrieved through external means.

You need to use the filter ab_google_maps_markers and return the new nested array.

Example:

function new_array( $markers ) {     $markers = (object) array( 
        array( 
            'lat' => '30.266132', 
            'lon' => '-97.745825',             'title' => 'Gingerman Austin',             'address' => '301 Lavaca St, Austin TX 78701'         ),         array(             'lat' => '30.2658',             'lon' => '-97.735691',             'title' => 'Easy Tiger Bake Shop and Beer Garden',             'address' => '709 East 6th St, Austin TX 78701'         ),     );     return $markers; } add_filter( 'ab_google_maps_markers', 'new_array' ); 

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums