Thanks. Your snippet doesn't work on these two examples.
Can't promote from level 1:
* h1 :noexport:
no export
* h2 :ignore_heading:
export
"export" becomes part of the noexport heading.
* h0
** h1 :noexport:
no export
** h2 :ignore_heading:
export
If this is often needed feature, ox.el and potentially backends should be
patched to support it. I think it would be great if ox did support it.
Of course, Nicolas would have the final say in such a matter.
But I'm not sure so difficult hacks should be promoted in the manual.
Improving the example is fine, though.
It's great with better documentation for how to use org-map-entries! But
the example is not very robust. I think another, less complicated example
would be better.