Action "Register Post Type" does not activate custom fields for CPT

I am not sure, if this is a bug or if I’m doing doing it wrong:

When disabling REST API (for disabling Gutenberg) the custom fields are also not available.

How to solve this?

System-Info:

  • WP 6.5.4
  • Pinegrow WP Plugin 1.0.18

Also tested the same Project (exported form WP) with Pinegrow Version 7.93 (MacOS) with same result.

@MichelyWeb are you using ACF? php - WordPress Custom Fields tab gone after installing ACF Pro plugin - Stack Overflow

Thanks @matjaz. With this code from the linked stackoverflow i now can toogle the (core) custom fields:

function my_acf_init() {
    acf_update_setting('remove_wp_meta_box', false);
}

add_action('acf/init', 'my_acf_init');

Again learned something new. :grinning:

3 Likes