miya / custom-field-geometry
Package info
github.com/miya0001/custom-field-geometry
Language:HTML
pkg:composer/miya/custom-field-geometry
dev-master
2017-10-04 05:04 UTC
Requires
- miya/custom-field: ^2.0
This package is not auto-updated.
Last update: 2026-03-15 11:00:58 UTC
README
Add a custom field to save geometries to the edit screen of the specific post type for WordPress.
Install
$ composer require miya/custom-field-geometry
How to use
<?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.