WPAS_Tickets_List::remove_excerpt PHP Method

remove_excerpt() public method

We don't want ot display the ticket excerpt in the tickets list when the excerpt mode is selected.
public remove_excerpt ( string $content ) : string
$content string Ticket excerpt
return string Excerpt if applicable or empty string otherwise
    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;
    }