summaryrefslogtreecommitdiffstats
path: root/giglogadmin.php
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@anduin.net>2021-01-17 21:25:08 +0100
committerHarald Eilertsen <haraldei@anduin.net>2021-01-17 21:49:52 +0100
commit540b1b93817378550aeeb02370ca845d97430534 (patch)
treee0f2a35fde50af19f7056a111a96ae2c83217941 /giglogadmin.php
parent6554ae2e81a9aef9d55ddacb3eaf6014f88f8502 (diff)
downloadgigologadmin-540b1b93817378550aeeb02370ca845d97430534.tar.gz
gigologadmin-540b1b93817378550aeeb02370ca845d97430534.tar.bz2
gigologadmin-540b1b93817378550aeeb02370ca845d97430534.zip
Add shortcodes to display (public) concert list.
Diffstat (limited to 'giglogadmin.php')
-rw-r--r--giglogadmin.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/giglogadmin.php b/giglogadmin.php
index 977acbd..b5c45f9 100644
--- a/giglogadmin.php
+++ b/giglogadmin.php
@@ -18,8 +18,15 @@
*/
if ( !class_exists( 'GiglogAdmin_Plugin' ) ) {
+ require_once __DIR__ . '/includes/public/shortcodes/giglog_bands.php';
+
class GiglogAdmin_Plugin
{
+ static public function init() {
+ add_shortcode('giglog_cities', 'giglogadmin_getfilters');
+ add_shortcode('giglog_bands', 'giglogadmin_getconcerts');
+ }
+
static function activate() {
require_once __DIR__ . '/includes/admin/register_db_tables.php';
}
@@ -30,5 +37,7 @@ if ( !class_exists( 'GiglogAdmin_Plugin' ) ) {
register_activation_hook( __FILE__, array( 'GiglogAdmin_Plugin', 'activate' ));
register_deactivation_hook( __FILE__, array( 'GiglogAdmin_Plugin', 'deactivate' ));
+
+ GiglogAdmin_Plugin::init();
}
?>