miya/custom-field-geometry

A custom field to save geometries


License
GPL-2.0

Documentation

miya/custom-field-geometry

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

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.