count_by_status( 'pending' ); $badge = $pending_count > 0 ? sprintf( ' %d', $pending_count ) : ''; add_submenu_page( 'edit.php?post_type=' . PR_Core_Peptide_CPT::POST_TYPE, __( 'AI Candidate Queue', 'peptide-repo-core' ), __( 'Candidate Queue', 'peptide-repo-core' ) . $badge, PR_Core_Peptide_CPT::CAPABILITY, 'pr-core-candidates', array( new PR_Core_Candidate_Queue_Page(), 'render' ) ); } /** * Enqueue minimal admin CSS for meta boxes. * * @param string $hook_suffix Current admin page hook. * @return void */ public function enqueue_admin_styles( string $hook_suffix ): void { $screen = get_current_screen(); if ( ! $screen || PR_Core_Peptide_CPT::POST_TYPE !== $screen->post_type ) { return; } wp_enqueue_style( 'pr-core-admin', PR_CORE_PLUGIN_URL . 'assets/css/admin.css', array(), PR_CORE_VERSION ); } }