So playing around with ‘advanced-custom-fields-pro/acf.php’ I noticed dir is plugin_dir_url which makes ‘wp-content/plugins/’
Looking in ACF4 ‘advanced-custom-fields-pro/acf.php’ I see the function helpers_get_dir( $file ) which locates the proper directory and fixes win issues.
Adding function helpers_get_dir() to ‘advanced-custom-fields-pro/acf.php’ and replacing:
‘dir’ => plugin_dir_url( __FILE__ ),
‘dir’ => helpers_get_dir(__FILE__ ),
Appears to fix the situation.
Obviously, this isn’t a proper fix. Just a direction to the issue.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2023 Advanced Custom Fields.