Afform - Support embedding afforms in WP shortcodes
authorColeman Watts <coleman@civicrm.org>
Sun, 28 Feb 2021 04:35:42 +0000 (23:35 -0500)
committerColeman Watts <coleman@civicrm.org>
Wed, 7 Apr 2021 03:06:35 +0000 (23:06 -0400)
commitf228ad74beeba9d6cf9d74b67f0dd315795b67aa
tree699a73babc4af3c3f0ef30d7799ac75ce5333ad5
parent7021898771d9c0dac904b04cb66337a9a787e94f
Afform - Support embedding afforms in WP shortcodes

This implements the necessary hooks & callbacks for picking an afform from the Civi shortcode popup,
and displaying the afform when viewing a single WP post/page or list of posts.

Note that unlike traditional Civi shortcodes, afform does not rely on invoking a civi page request,
but simply outputs the AngularJS directive.
ext/afform/core/afform.php