From 59adf20d8935bb4c9a987d35bd080fe98a212c2e Mon Sep 17 00:00:00 2001 From: Alexandre Sadowski Date: Mon, 23 Jun 2014 12:38:29 +0200 Subject: [PATCH] Update ShortcodeReference.php Hi Scott, Within a client request for his site, I used your plugin which perfectly necessary. However, the customer wanted to customize descriptions shortcodes. So I added a filter to edit each description to come. I make you of this change. Best, --- shortcode-reference/lib/ShortcodeReference.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shortcode-reference/lib/ShortcodeReference.php b/shortcode-reference/lib/ShortcodeReference.php index 884fa1b..b5a52ab 100644 --- a/shortcode-reference/lib/ShortcodeReference.php +++ b/shortcode-reference/lib/ShortcodeReference.php @@ -105,7 +105,7 @@ public function getDescription(){ } $this->_description = $parsed_desc; } - return $this->_description; + return apply_filters( 'shortcode_suggest_description' ,$this->_description, $this->_shortcode); } /**