diff --git a/plugin/apps.php b/plugin/apps.php index a8d9228..22b3e88 100644 --- a/plugin/apps.php +++ b/plugin/apps.php @@ -59,6 +59,7 @@ function __construct() { $this->setup_relationships(); $this->setup_template(); $this->setup_hooks(); + $this->setup_shortcodes(); require_once WPAPPS_PATH . '/posttypes.php'; require_once WPAPPS_PATH . '/metaboxes.php'; @@ -317,6 +318,14 @@ public function wpapps_error($err) { trigger_error($err, E_USER_ERROR); restore_error_handler(); } + + /** + * Stub to show evenlist using shortcode (for widgets) + */ + private function setup_shortcodes() + { + add_shortcode('eventlist', function() { echo "returns nothing yet."; }); + } } new WPApps; // 300 lines!