Plugin Author
icc0rz
(@icc0rz)
Hello!
Currently there’s no parsing of shortcodes. What kind of shortcode are you thinking of putting in, and in which content type?
You could do this in a hacky way by just looking for the shortcode in the string returned by 'jsonContent' => $core->filterParameters($content) in class-h5p-plugin.php, line ~581, using has_shortcode or something.
I’m sure this could be a great idea in some use-cases, but be aware that if you are to export/download the h5p, the shortcode will not be replaced when uploaded to a new site.
I was looking to use accordion/toggle type of short codes within the image hotspots content type to organize links. (I’d be using the image as a navigational tool of sorts)
It is not a necessity for the use I’m envisioning, I was just curious about it. Thanks for the quick and thorough response. I may give the workaround a try when I get a chance.