Support

Search results for ""

Sorry, no results found. Perhaps you would like to search the documentation?
All Topics
Robert

Add action hook to "display_optional_settings"

Hi there,

I found out that the ACF Image Crop Addon Field is not supported by default to show in admin columns. I’ve created a little plugin to enable this functionality: https://github.com/exophunk/cac-addon-acf-image-crop

I use the hook “cac/acf/format_acf_value” to format the field to be displayed as an image. Unfortunately there is no hook to also add the display size options to the admin columns configuration.

It would be handy if you could also add a hook to the method display_optional_settings() in acf-field.php on line 657, so it is possible to customize the options via a plugin.

Thank you!

7 years, 1 month ago
Stefan van den Dungen Gronovius
Developer

Hi Joris,

Thanks for your feedback. Great you’ve made your own plugin to alter our code.
It happened to be that we also created a custom column for the ACF Image Crop field in one of our unofficial plugins.
https://github.com/codepress/cac-extra-columns

We’re currently working on a new major release of Admin Columns Pro and the ACF addon for Admin Columns Pro and it is almost finished. This also changes some things on how to use some of our filters and actions. If you like you can already get a beta/nightly build of this release to see if your code still works with our new code.

After we release the new version we also want to have another look on how to support third party ACF fields within our plugin. ACF Image cropper is one of them.

7 years, 1 month ago

You must be logged in to reply to this topic.