name = 'unique_id'; /* * label (string) Multiple words, can include spaces, visible when selecting a field type */ $this->label = __('Unique ID', 'acf-unique_id'); /* * category (string) basic | content | choice | relational | jquery | layout | CUSTOM GROUP NAME */ $this->category = 'layout'; /* * l10n (array) Array of strings that are used in JavaScript. This allows JS strings to be translated in PHP and loaded via: * var message = acf._e('unique_id', 'error'); */ $this->l10n = array( ); // do not delete! parent::__construct(); } /* * render_field() * * Create the HTML interface for your field * * @param $field (array) the $field being rendered * * @type action * @since 3.6 * @date 23/01/13 * * @param $field (array) the $field being edited * @return n/a */ function render_field( $field ) { ?>