Open iniznet opened 2 years ago
Similar to the #36 issue, this also happening to WordPress default taxonomy.
ErrorException: Attempt to read property "menu_name" on array File: wp/wp-admin/menu.php Line: 179
'category' => [ 'links' => ['series', 'series-queue', 'chapter'], // This also doesn't work, unable to link CPT 'meta_box' => 'radio', 'labels' => [ 'singular' => 'Series', 'plural' => 'Series', ], ],
Removing the default taxonomy is work fine, though.
Add "menu_name" key to 'labels' array and define it as 'labels' => (object)[ ... ] to convert from object to array. It's not pretty but it works as a fix.
Similar to the #36 issue, this also happening to WordPress default taxonomy.
Poet:
Removing the default taxonomy is work fine, though.