We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c77a91d commit 879543fCopy full SHA for 879543f
classes/Visualizer/Module/Frontend.php
@@ -57,8 +57,15 @@ public function __construct( Visualizer_Plugin $plugin ) {
57
$this->_addAction( 'wp_enqueue_scripts', 'enqueueScripts' );
58
$this->_addShortcode( 'visualizer', 'renderChart' );
59
60
- add_filter( 'widget_text', 'do_shortcode' );
61
- add_filter( 'term_description', 'do_shortcode' );
+ // add do_shortocde hook for widget_text filter
+ if ( !has_filter( 'widget_text', 'do_shortcode' ) ) {
62
+ add_filter( 'widget_text', 'do_shortcode' );
63
+ }
64
+
65
+ // add do_shortcode hook for term_description filter
66
+ if ( !has_filter( 'term_description', 'do_shortcode' ) ) {
67
+ add_filter( 'term_description', 'do_shortcode' );
68
69
}
70
71
/**
0 commit comments