jameelmoses / acf-flexible-content-extended

Extends the ACF Flexible Content Field by transforming the layout list into a modal with image previews. Editing the fields layouts also happens in a modal for a better editing user experience.
Other
22 stars 9 forks source link

Filtering custom image path doesn't work #18

Open joshkemmer opened 1 year ago

joshkemmer commented 1 year ago

I can't get the custom image path to work. The default image path works fine.


Version information

Warface commented 1 month ago

That's because the filter needs a callback function to work. Here's the fix

add_filter( 'acf-flexible-content-extended.images_path', function() { return 'assets/images/acf-flexible-content-extended'; });

Now it should check in the right folder