“added trigger” not working
-
When I installed the acf extension, the added trigger stopped working. The update trigger still works fine. Is this a known bug? Here is my code, but the UI generated notification acts the same
add_action( ‘notification/trigger/registered’, function( $trigger ) {
if ( ‘wordpress/post/added’ !== $trigger->get_slug() ) {
return;
}$content = ‘Quote Link: {post_permalink}’;
notification( [
‘hash’ => uniqid(),
‘title’ => $trigger->get_name(),
‘trigger’ => $trigger,
‘carriers’ => [
’email’ => [
‘activated’ => true,
‘enabled’ => true,
‘subject’ => ‘New Quote has been created for: {acf {post_ID} client_name}’,
‘body’ => $content,
‘recipients’ => [
[
‘type’ => ‘administrator’,
‘recipient’ => ‘{post_author_user_email}’,
],
],
],
],
‘enabled’ => true,
‘extras’ => [],
‘version’ => time(),
] );} );
- The topic ‘“added trigger” not working’ is closed to new replies.