ACF x Frame Creative: Custom Image Hotspot Field
Adds a field to capture coordinates relative to specified images
by Frame Creative / Andrew Rockwell · github.com/framecreative/acf-image-hotspot-field · website
★ 1stars
356composer installs
0forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/framecreative/acf-image-hotspot-field/archive/refs/heads/master.zipAlso on Packagist as framecreative/acf-image-mapping-hotspots:
composer require framecreative/acf-image-mapping-hotspotsFrom the readme
ACF Field Type Template
Welcome to the Advanced Custom Fields field type template repository.
Here you will find a starter-kit for creating a new ACF field type. This start-kit will work as a normal WP plugin.
For more information about creating a new field type, please read the following article:
http://www.advancedcustomfields.com/resources/tutorials/creating-a-new-field-type/
Structure
/assets: folder for all asset files.
/assets/css: folder for .css files.
/assets/images: folder for image files
/assets/js: folder for .js files
/fields: folder for all field class files.
/fields/FIELDNAME-v5.php: Field class compatible with ACF version 5
/fields/FIELDNAME-v4.php: Field class compatible with ACF version 4
/lang: folder for .pot, .po and .mo files
acf-FIELDNAME.php: Main plugin file that includes the correct field file based on the ACF version
readme.txt: WordPress readme file to be used by the WordPress repository
step 1.
This template uses PLACEHOLDERS such as FIELDNAME throughout the file names and code. Use the following list of placeholders to do a 'find and replace':
FIELDNAME: Single word, no spaces. Underscores allowed. eg. donatebutton
FIELDLABEL: Mu