Skip to content

Commit fdb887f

Browse files
committed
Update class-shortcodes.php
1 parent e59b336 commit fdb887f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

includes/frontend/class-shortcodes.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ public function __construct() {
4141
* @return string $output Formatted shortcode output
4242
*/
4343
public static function knowledgebase( $atts, $content = null ) {
44+
static $kb_rendering = false;
45+
if ( true === $kb_rendering ) {
46+
return '';
47+
}
48+
$kb_rendering = true;
4449

4550
if ( wzkb_get_option( 'include_styles' ) ) {
4651
wp_enqueue_style( 'wz-knowledgebase-styles' );
@@ -57,6 +62,8 @@ public static function knowledgebase( $atts, $content = null ) {
5762

5863
$output = wzkb_knowledge( $atts );
5964

65+
$kb_rendering = false;
66+
6067
/**
6168
* Filters knowledgebase shortcode.
6269
*

0 commit comments

Comments
 (0)