Home › Forums › ACF PRO › Disable ACF-JSON auto generation › Reply To: Disable ACF-JSON auto generation
Tried that filter, but still json was created on my clients site.
Edit: With above filter for acf/settings/json
the data from json is not included in the post edit screen as expected.
But with WPML plugin active, the json folder and files are still created because the settings_save_json
filter in core/wpml.php
always creates the json folder if it does not yet exist and due to this is_writable()
in update_field_group
in core/json.php
will always return true.
As a solution I would suggest to add the acf_get_setting('json')
validation from include_fields
also to update_field_group
and delete_field_group
in core/json.php
.
WP 3.8.3, ACF PRO 5.0.0, WPML 3.1.6
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.