Closed oasit closed 5 years ago
Hi, does it work when you change line 22 in include/ACFFieldOpenstreetmap/Core/Core.php to
add_action( 'init' , array( $this , 'init_compat' ), 0 );
instead of add_action('plugins_loaded', ...)
?
No, it doesn't. 'init' seems to be too late. 'plugins_loaded' seems to be toot early, ACF isn't loaded at plugins_loaded when ACF is loaded via the theme.
'acf/include_field_types' is working!
Okay, acf/include_field_types it is then... Would you mind to run another test with the current master? If it works, I'll release it.
Sorry, because of some other small bugs and because we are using Mapbox for the frontend, we wrote an ACF Mapbox field on our own. I can not and will not test the current master but I can confirm that 'acf/include_field_types' works with v0.1.8.
When ACF is loaded via the theme (between setup_theme and after_setup_theme) the OSM field is not available. No matter if loaded as plugin by WP or manually in the theme.