* SPDX-FileCopyrightText: 2022 Harald Eilertsen * * SPDX-License-Identifier: AGPL-3.0-or-later */ declare(strict_types=1); if ( ! function_exists( 'giglogadmin_shortcode_public' ) ) { /** * Shortcode that displays the public concert list. * * Usage: `[getconcerts]` * * This shortcode does not have any attributes. */ function giglogadmin_shortcode_public() : string { $c = new GiglogAdmin_ConcertsTable(); return $c->render(); } add_shortcode( 'getconcerts', 'giglogadmin_shortcode_public' ); }