miya/custom-field-geometry

dev-master 2017-10-04 05:04 UTC

This package is not auto-updated.

Last update: 2024-09-15 03:49:53 UTC


README

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

为WordPress特定文章类型的编辑屏幕添加自定义字段以保存几何形状。

安装

$ composer require miya/custom-field-geometry

如何使用

<?php

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

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