Elementor Pro updated support for Pods 2.9+ -- Simple fix #19359
sc0ttkclark
announced in
Developers Community
Replies: 1 comment 1 reply
-
In addition to this I would also recommend supporting the |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This one is easy, I hope your developers can accommodate the simple one-line change to support a new feature in Pods 2.9+ that will be released in a few days.
I am the Lead Developer of the Pods Framework, we have some changes coming in Pods 2.9 that support more fine tuned image file types being selected for our File fields. There needs to be a change in an Elementor Pro file to support this properly.
The file is:
elementor-pro/modules/dynamic-tags/pods/module.php
On line 99, this:
if ( 'images' !== $field['options']['file_type'] ) {
Should be changed to:
if ( ! in_array( $field['options']['file_type'], [ 'images', 'images-any', 'any', 'other' ], true ) ) {
We added support for an images-any option in Pods 2.9+ -- it works the same as images, but it allows for any "image/*" mime type supported by WordPress instead of just the four we had support for.
Please pass this along to your developers for a future Elementor Pro maintenance release
from me. It will be important as our shared users begin updating to Pods 2.9 this month.
Beta Was this translation helpful? Give feedback.
All reactions