This update includes a great deal of additions, tweaks, and bug fixes that we’ve been working on over the past month.
- Added: WP-CLI > Added a new
wp pods tools flush-cacheWP-CLI command to flush the Pods caches. To flushes caches for a specific Pod, usewp pods tools flush-cache --pod=your_pod(@sc0ttkclark) - Added: DFV > Introduce
window.PodsDFV.detectForm()andwindow.PodsDFV.detectField()helper methods to normalize everything going into the DFV API. (@sc0ttkclark) - Added: DFV >
window.PodsDFVmethods now accept null for pod, itemId, and formCounter values in various methods which will automatically detect+use the first pod, itemId, and formCounter on the screen. (@sc0ttkclark) - Added: API > New PHP function
pods_is_demo()will allow Pods to offer streamlined demos using the one-click WASM demo. (@sc0ttkclark) - Added: API > New PHP function
pods_clone_objects()andpods_clone_object()assist in cloning objects primarily used through callbacks. (@sc0ttkclark) - Added: API > New PHP function
pods_debug_log()allows for logging exception messages that do not need to be shown on the screen. (@sc0ttkclark) - Added: API > New PHP function
pods_get_item_object()allows for getting the WP object for an item based on the object type. This is similar toget_metadata()in WP core but as a general solution for any object. (@sc0ttkclark) - Added: API > New
Pods::has_rows()method can be used instead ofPods::total()to just check if there were any rows returned. (@sc0ttkclark) - Added: Pods Field Output > You can now traverse into the fields
parent(Taxonomies) andpost_parent(Post Types) as relationships likeparent.nameorpost_parent.post_title. This also works forpost_author. (@sc0ttkclark) - Added: Pods Field Output > You can now call
post_thumbnail.title,post_thumbnail.caption,post_thumbnail.description,post_thumbnail.mime_type,post_thumbnail.alt_text,post_thumbnail.width,post_thumbnail.height,post_thumbnail.filesize,post_thumbnail.dimensions,post_thumbnail.filename, andpost_thumbnail.extension, and image metadata usingpost_thumbnail.image_meta.copyright. This also works for other attachments. (@sc0ttkclark) - Tweak: Edit Field Modal > Added additional text below the Required option when editing a boolean field to clarify that only the “Yes” option counts as valid. (@sc0ttkclark)
- Tweak: Pods Field Output > Added full
$paramsfromPods::field()to the filterspods_data_map_field_values_custom,pods_data_map_field_values_map_value, andpods_data_map_field_values_map_value_pre_check. (@sc0ttkclark) - Tweak: Pods Field Output > Bypass mapping values when in the form context to prevent conflicts with Avatar fields and other fields. (@sc0ttkclark)
- Tweak: Migration > Abstracted the migration process on first edit of a Pod to detect orphaned fields on future edits with a notice on the screen about the repair. (@sc0ttkclark)
- Tweak: API > Split up cache flushing method
PodsAPI::cache_flush_pods()into a separate methodPodsAPI::cache_flush_groups()andPodsAPI::cache_flush_fields()to more easily flush specific object types. (@sc0ttkclark) - Tweak: API > Passing more context into pods_podsrel_enabled() usage for future iteration work on certain areas of the code. (@sc0ttkclark)
- Fixed: Edit Field Modal > Attempt to auto-fix
pick_objectfor display when it is set to “pod” but the real object is “post_type” or “taxonomy”. #7007 (@sc0ttkclark) - Fixed: Components > Fixed PHP warnings with the Translate Pods component (@JoryHogeveen)
- Fixed: Pods Shortcode > Bypass showing the Pods Shortcode button on TinyMCE editors when on an Elementor edit screen. (@sc0ttkclark)
- Fixed: Stats Opt-in > Don’t show the opt-in message on Pods content screens, only show it on pages under the Pods Admin menu. (@sc0ttkclark)
- Fixed: Relationship Modal > Updated CSS to prevent the modal from being narrow. #6996 (@pedromfm, @sc0ttkclark)
- Fixed: DFV > Handle
falsevalues asnullproperly to prevent JS TypeErrors. #6963 (@sc0ttkclark, @spiderneo) - Fixed: API > Normalize object_type for
PodsAPI::get_table_info(). #7007 (@sc0ttkclark) - Fixed: API > Return 0 for
{@user.ID}when logged out instead ofnull. #6979 (@jeiseman, @sc0ttkclark) - Fixed: API > Return empty string when user context used instead of null for certain fields. (@sc0ttkclark)
- Fixed: API > Use static cache for
PodsMeta::groups_get()instead of static variable to allow flushing the groups cache. (@sc0ttkclark) - Fixed: Object Cache > When serializing
Whatsitobject, prevent serialized Closures being cached through Pods Alternative Cache. (@sc0ttkclark) - Fixed: Pods Field Output > Resolved issue with the fields
parent(Taxonomies) andpost_parent(Post Types) so they return the ID as they used to in previous Pods versions. (@sc0ttkclark) - Fixed: Pods Field Output > Resolve dot notation for attachments and post_thumbnail fields fallbacks when calling object fields like
post_thumbnail.ID. #7005 (@sc0ttkclark) - Fixed: Bidirectional Relationships > Now using the correct related limit for bidirectional relationships instead of unlimited. (@sc0ttkclark)
- Fixed: Admin Columns integration > Resolved PHP warning with
substr()usage. #7014 (@sc0ttkclark) - Fixed: Pods Find Queries > References to
.meta_valueshould always join the meta table when using a table-based Pod that supports meta-based storage. #7009 (@sc0ttkclark) - Fixed: API > Fixed
filter_by_dateusage ofsprintf()to prevent PHP warnings. #6980 (@sc0ttkclark)
You can read the full change log for this release on the Development tab of our WordPress.org plugin page.