项目作者: philipnewcomer

项目描述 :
An ACF field which generates a unique ID value, intended for use in ACF Repeaters
高级语言: PHP
项目地址: git://github.com/philipnewcomer/ACF-Unique-ID-Field.git
创建时间: 2017-08-07T12:39:41Z
项目社区:https://github.com/philipnewcomer/ACF-Unique-ID-Field

开源协议:GNU General Public License v2.0

下载


ACF Unique ID Field

An Advanced Custom Fields field which generates a unique ID value.

While this library was originally developer for use in repeaters where each field in a repeater block needs to be given a persistent unique ID, it can be used anywhere an automatically-generated unique ID is required.

Installation

  1. composer require philipnewcomer/acf-unique-id-field

Usage

Call the ACF_Field_Unique_ID static method init() to activate it.

  1. PhilipNewcomer\ACF_Unique_ID_Field\ACF_Field_Unique_ID::init();

Select the “Unique ID” field type when using the ACF GUI.

When editing a post, unique IDs will be generated on the initial save.

Notes

IDs will be generated in the following format:

  1. 59885be6f2289