org-contextualize-keys

org-contextualize-keys is a compiled Lisp function in `org.el'.

(org-contextualize-keys ALIST CONTEXTS)

Return valid elements in ALIST depending on CONTEXTS.

`org-agenda-custom-commands' or `org-capture-templates' are the
values used for ALIST, and `org-agenda-custom-commands-contexts'
or `org-capture-templates-contexts' are the associated contexts
definitions.