public function remove_excerpt($content) { global $mode; if (!is_admin() || !isset($_GET['post_type']) || 'ticket' !== $_GET['post_type']) { return $content; } global $mode; if ('excerpt' === $mode) { return ''; } return $content; }