Issue on Adding Taxonomy to Custom Post Type Using Function

This is what I use to build new custom Taxonomy to my custom post types. And it works for me. function fun_book() { // Add new “Fun” taxonomy to Book Post Type register_taxonomy(‘fun’, ‘book’, array( // Hierarchical taxonomy (like categories) ‘hierarchical’ => true, // This array of options controls the labels displayed in the WordPress … Read more

How to get WordPress Adminmenu items?

Menu and submenu data is accessible through the $menu and $submenu globals: add_action( ‘admin_notices’, ‘so19890599_print_menus’ ); function so19890599_print_menus() { global $menu, $submenu; echo ‘<pre>’; print_r( $menu ); echo ‘</pre>’; echo ‘<pre>’; print_r( $submenu ); echo ‘</pre>’; }