Fix for the missing WP Custom Data Fields – Filter
-
Since I just ran into this ‘new feature’ problem today for first time, and found the filter hook to add to functions in the support section; I thought I would repost this here for other like me having a WTF moment.
In our case where we have hacked WP into a custom CMS news and syndication platform, we have some WP specific custom fields separate from ACF — and I needed to edit one of those today due to having to kill a post and repost to get a different story unique ID, and the fields were gone and unable to make visible from the visibility options.
Sigh. This was almost as intrusive as the hideous Yoast warnings now popping up every time one resaves permalinks or deletes a post (having used WP longer than most of these plugin makers knew what WP was, this is starting to get both annoying and troublesome by effectively breaking or rewriting WP elements not asked for).
IN ANY CASE: this is the code to bring back the visibility toggle for WP custom fields, when added to a custom plugin or to theme functions file.
add_filter('acf/settings/remove_wp_meta_box', '__return_false');
- The topic ‘Fix for the missing WP Custom Data Fields – Filter’ is closed to new replies.