true, '_builtin' => true); $argsCPT = array('public' => true, '_builtin' => false); $output = 'objects'; $operator = 'and'; // Posts Pages $types = get_post_types( $argsPosts, $output, $operator ); foreach ( $types as $type ) { echo '
' . __($type->labels->singular_name , 'default') . '
'; } // Custom Post Types $typesCPT = get_post_types( $argsCPT, $output, $operator ); foreach ( $typesCPT as $typeCPT ) { echo '
' . __($typeCPT->labels->singular_name , 'default') . '
'; } } // Custom toolbar function adminDash() { if ( is_user_logged_in() && current_user_can('administrator')) { // Settings for show hide (settings.php) $hideShow = get_option('adm_hideshow'); // Hide WordPress front end toolbar show_admin_bar( $hideShow ); // Create new Adminimal toolbar $menuNew = '' . __('New', 'adminimal') . ''; $menuDash = '' . __( 'Admin', 'adminimal' ) . ''; $menuDashEdit = '' . __( 'Edit', 'adminimal' ) . ''; $menuDashUser = '' . __( 'Me', 'adminimal' ) . ''; echo ''; } } add_action( 'wp_footer', 'adminDash'); ?>