From 11b87ff17474902cded3d8fa50e503ce03e1388a Mon Sep 17 00:00:00 2001 From: Tijn Kuyper Date: Wed, 2 Oct 2019 09:39:41 +0200 Subject: [PATCH] FAQ plugin - added shortcode category ID Co-Authored-By: Jimako --- e107_plugins/faqs/faqs_shortcodes.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/e107_plugins/faqs/faqs_shortcodes.php b/e107_plugins/faqs/faqs_shortcodes.php index e2fa0322c..7faab8094 100644 --- a/e107_plugins/faqs/faqs_shortcodes.php +++ b/e107_plugins/faqs/faqs_shortcodes.php @@ -199,6 +199,12 @@ class faqs_shortcodes extends e_shortcode } } + /* {FAQ_CATEGORY_ID} */ + function sc_faq_category_id($parm = '') + { + return $this->var['faq_parent']; + } + function sc_faq_category($parm = '') { // $tp = e107::getParser();