How To Create Blogger Short Codes And How Did They Work?


#1

Hi!

I want to know that How To Create Blogger Short Codes And How Did They Work?

Waiting For a Reply from @Mohammad and @Shivansh

Please Increase My Knowledge About It. Thanks!

Hope You Understand.

I searched this topic on this forum but didn’t got my answer. It was only about implementing shortcodes.


#2

@Hassan

Shortcodes are written by providing a handler function “example(html)” . Shortcode handlers are broadly similar to WordPress filters: they accept parameters (attributes) and return a output. We used a jQuery function to parse through Square bracket content and attributes and then replace the Square bracket DOM with the HTML version and ignore or escape those Square braces which are enclosed across a name which is not registered through the global variable “var bhf”. The Parser function recognizes registered shorctodes through the global variables only. Locations where shortcodes will work include Widgets, Blog Posts, Pages and Blog comments. Shortcodes placed elsewhere will be escaped.