public function add_ticket_id_title($title) { global $pagenow; if ('edit.php' !== $pagenow || !isset($_GET['post_type']) || 'ticket' !== $_GET['post_type']) { return $title; } $id = get_the_ID(); $title = "{$title} (#{$id})"; return $title; }