The Pods Framework is a Content Development Framework for WordPress - It lets you create and extend content types that can be used for any project. Add fields of various types we've built in, or add your own with custom inputs, you have total control.
On file field, if it's a single file field (file_limit equals to 1), once an file has been added, we can hide the Add file button, once this file is deleted, then the button will show again, so the original situation reported on the issue can be fixed.
Related GitHub issue(s)
7120
Testing instructions
Create a single file field
Go to post type
First you will see the Add file button
Add a file then Add file button will be hidden
Once file is deleted, Add file button will be shown again
Description
On file field, if it's a single file field (
file_limit
equals to 1), once an file has been added, we can hide theAdd file
button, once this file is deleted, then the button will show again, so the original situation reported on the issue can be fixed.Related GitHub issue(s)
7120
Testing instructions
Add file
buttonAdd file
button will be hiddenAdd file
button will be shown againScreenshots / screencast
https://github.com/pods-framework/pods/assets/75633537/b359a6ba-178d-47ae-9b57-5a794034f9a3
Changelog text for these changes
Enhancement: Single file field now have better user experience. (@heybran)
PR checklist