miya/custom-field-map

安装: 254

依赖: 0

建议者: 0

安全: 0

星标: 0

关注者: 2

分支: 1

开放问题: 0

语言:HTML

3.2.0 2018-07-30 18:34 UTC

This package is not auto-updated.

Last update: 2024-09-15 04:00:19 UTC


README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

为WordPress特定文章类型的编辑界面添加自定义字段,以保存纬度和经度。

安装

$ composer require miya/custom-field-map

如何使用

<?php

require_once( dirname( __FILE__ ) . '/vendor/autoload.php' );

$map = new \Miya\WP\Custom_Field\Map( 'latlng', 'Latitude and Longitude' );
$map->add( 'post' ); // Set post type to display meta box.