diff --git a/docs/en/02_Developer_Guides/05_Extending/04_Shortcodes.md b/docs/en/02_Developer_Guides/05_Extending/04_Shortcodes.md index 42484385d..91e22794a 100644 --- a/docs/en/02_Developer_Guides/05_Extending/04_Shortcodes.md +++ b/docs/en/02_Developer_Guides/05_Extending/04_Shortcodes.md @@ -56,7 +56,7 @@ First we need to define a callback for the shortcode. 'MyShortCodeMethod' => 'HTMLText' ); - public function MyShortCodeMethod($arguments, $content = null, $parser = null, $tagName) { + public static function MyShortCodeMethod($arguments, $content = null, $parser = null, $tagName) { return "" . $tagName . " " . $content . "; " . count($arguments) . " arguments."; } }