Hi All,
Does anyone know how to properly call the do_action that you can found in several .js files (specifically in field-group.js)? For instance, add_action in your own js file for your acf custom field plugin folder.
Turned out I got it the wrong way at first.
Here’s the working format (you can see this implemented in the same file):
acf.add_action('change_field_type', function ($el) {
});
thank you drebbits. that helped me