Title: Unique Field Guard For ACF
Author: Abiodun Paul Ogunnaike
Published: <strong>2024 年 11 月 1 日</strong>
Last modified: 2025 年 2 月 4 日

---

搜索插件

![](https://ps.w.org/unique-field-guard-for-acf/assets/banner-772x250.png?rev=3234984)

**该插件尚未通过WordPress的最新3个主要版本进行测试**。 当与较新版本的WordPress一起
使用时，可能不再受到维护或支持，并且可能会存在兼容性问题。

![](https://ps.w.org/unique-field-guard-for-acf/assets/icon-256x256.png?rev=3234984)

# Unique Field Guard For ACF

 作者：[Abiodun Paul Ogunnaike](https://profiles.wordpress.org/abbeymaniak/)

[下载](https://downloads.wordpress.org/plugin/unique-field-guard-for-acf.1.0.1.zip)

 * [详情](https://cn.wordpress.org/plugins/unique-field-guard-for-acf/#description)
 * [评价](https://cn.wordpress.org/plugins/unique-field-guard-for-acf/#reviews)
 * [开发进展](https://cn.wordpress.org/plugins/unique-field-guard-for-acf/#developers)

 [支持](https://wordpress.org/support/plugin/unique-field-guard-for-acf/)

## 描述

**Unique Field Guard For ACF** is a WordPress plugin designed to ensure the uniqueness
of Advanced Custom Fields (ACF) values. By automatically checking for duplicates
during post saves, this plugin helps maintain data integrity and prevents the reuse
of the same values across your site for fields that needs to be unique.

### Key Features

 * **Uniqueness Verification:** Automatically checks for duplicate values in specified
   ACF fields.
 * **Admin Notices:** Displays clear notifications if a duplicate value is found,
   guiding users to resolve the issue.
 * **Seamless Integration:** Works with ACF and is compatible out of the box.
 * **Customizable Settings:** Configure which ACF fields require uniqueness checks
   through the plugin’s settings.
 * **Secure and Reliable:** Uses WordPress best practices for validation and redirection.

### Installation

 1. Upload the `unique-field-guard-for-acf` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to the ACF custom field under validation tab and activate the checkbox.

### Usage

 * Once activated, the plugin will automatically check for duplicate values in the
   ACF fields you configure.
 * If a duplicate is detected, the user will be redirected back to the edit page
   with an admin notice informing them of the issue.

### Advanced Field Type Support

 * Extend unique validation to more advanced field types, such as select fields,
   relationship fields, or repeater fields.
 * Added settings page to configure which fields require uniqueness checks.

### Custom Error Handling

 * Allow users to define their own error messages for different scenarios.
 * Support for multiple languages and localization of error messages.

### Dashboard and Reports

 * Generate and display reports on fields with duplicate values.
 * Provide an admin dashboard widget to monitor field uniqueness status.

### Admin Interface Enhancements

 * Add visual indicators in the admin UI for fields that have uniqueness constraints.
 * Allow users to apply or remove unique constraints in bulk.

### Enhanced Performance

 * Automate database indexing for fields with unique constraints.
 * implementation of caching mechanisms.

### API Integration

 * Expose endpoints for managing and configuring unique field settings via the WordPress
   REST API.

### User Permissions and Roles

 * Provide settings to control who can configure or manage unique constraints based
   on user roles.
 * Limit access to premium features based on user roles or subscription levels.

### Support and Documentation

 * Offer dedicated support channels for premium users.
 * Provide detailed documentation, including video tutorials and advanced use cases.

Join the waiting [Join the waiting List](https://primastech.com/product/unique-field-guard-for-acf/)

to be notified when the PRO version is released.

Upgrade to PRO [Upgrade to PRO](https://primastech.com/product/unique-field-guard-for-acf/)

Thank you for using **Unique Field Guard For ACF**. Your feedback and suggestions
are welcome!

## 屏幕截图

 * [[
 * Name and Activation of the plugin.
 * [[
 * location of the checkbox on the custom field.
 * [[
 * location of the unique checkbox activated on the custom field.

## 常见问题

### Q: Does this plugin work with all ACF field types?

A: This version supports text, number, and basic fields. Advanced field support,
like select or repeater fields, is planned for the PRO version.

### Q: Can I customize the error message?

A: Currently, the error message is fixed. The PRO version will allow custom error
messages.

### Q: How do I specify which fields require unique values?

A: In the ACF field editor, you can enable the unique constraint for each field 
under the validation tab.

### Support

For support or feature requests, please contact us via [Support Page URL](https://primastech.com/support)

## 评价

此插件暂无评价。

## 贡献者及开发者

「Unique Field Guard For ACF」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ Abiodun Paul Ogunnaike ](https://profiles.wordpress.org/abbeymaniak/)

[帮助将「Unique Field Guard For ACF」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/unique-field-guard-for-acf)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/unique-field-guard-for-acf/)，
查看[SVN仓库](https://plugins.svn.wordpress.org/unique-field-guard-for-acf/)，或
通过[RSS](https://plugins.trac.wordpress.org/log/unique-field-guard-for-acf/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/unique-field-guard-for-acf/)。

## 更新日志

#### 1.0.0

 * Initial release with core functionality to check for duplicate ACF field values.

## 额外信息

 *  版本 **1.0.1**
 *  最后更新：**1 年前**
 *  活跃安装数量 **10+**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **6.6.5**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/unique-field-guard-for-acf/)
 * 标签
 * [acf](https://cn.wordpress.org/plugins/tags/acf/)[guard](https://cn.wordpress.org/plugins/tags/guard/)
   [unique](https://cn.wordpress.org/plugins/tags/unique/)
 *  [高级视图](https://cn.wordpress.org/plugins/unique-field-guard-for-acf/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/unique-field-guard-for-acf/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/unique-field-guard-for-acf/reviews/)

## 贡献者

 *   [ Abiodun Paul Ogunnaike ](https://profiles.wordpress.org/abbeymaniak/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/unique-field-guard-for-acf/)

## 捐助

您愿意支持这个插件的发展吗?

 [ 捐助此插件 ](https://www.buymeacoffee.com/abbeymaniak)