UAMSWP Advanced Custom Fields: Mask Field
WordPress plugin that adds a Mask Field type to Advanced Custom Fields (ACF 5), formatting input with a jQuery Inputmask pattern. Based on comerline.es's ACF mask field.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/uams-web/uamswp-acf-maskfield/archive/refs/heads/main.zipAdds Masked input to ACF.
Links
Compatibility
This ACF field type is compatible with:
- ACF 5
Installation
- Copy the
UAMSWP-ACF-Maskfieldfolder into yourwp-content/pluginsfolder - Activate the ACF Mask Field plugin via the plugins admin page
- Create a new field via ACF and select the Mask Field Input type
- Read the description above for usage instructions
Tests
The suite is Pest 5 with Brain Monkey, so it runs with no database and no WordPress checkout. It needs PHP 8.4 and Composer.
composer install
composer test
vendor/bin/pest runs the same suite. Tests live in tests/Unit/, and each file is named *Test.php. The remote CI check runs the full chain on every pull request, so run composer test before opening one.
Credits
Developed and maintained by UAMS Web Services.
Developers:
- Josh Daugherty
- Todd McKee
Based on acf-maskfield by Alejandro Lucena Archilla (comerline.es), released under the MIT License. See License.
License
This plugin is licensed under the GNU General Public License, version 2 or later: see LICENSE.
It is based on acf-maskfield by Alejandro Lucena Archilla (comerline.es), which is released under the MIT License: see LICENSE-MIT.md for its copyright and permission notice.
Version 1.0.1
- The GitHub download holds only the files the plugin runs
- Static analysis raised to PHPStan level 10, with no change in behavior
Version 1.0.0 - Not tracked
- Initial Commit