org-macro-expand

org-macro-expand is a compiled Lisp function in `org-macro.el'.

(org-macro-expand MACRO TEMPLATES)

Return expanded MACRO, as a string.
MACRO is an object, obtained, for example, with
`org-element-context'. TEMPLATES is an alist of templates used
for expansion. See `org-macro-templates' for a buffer-local
default value. Return nil if no template was found.